<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="https://community.appian.com/cfs-file/__key/system/syndication/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>how to default time in date time field on page load.</title><link>https://community.appian.com/discussions/f/general/21643/how-to-default-time-in-date-time-field-on-page-load</link><description>I have a requirement to show the default time for eg 12:00 Am in the date-time component when the page gets loaded. 
 Date should be blank .</description><dc:language>en-US</dc:language><generator>Telligent Community 12</generator><item><title>RE: how to default time in date time field on page load.</title><link>https://community.appian.com/thread/84696?ContentTypeID=1</link><pubDate>Tue, 17 Aug 2021 20:27:12 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:359d794e-6ecf-4cfe-bdb4-1ace5272d1c9</guid><dc:creator>sugasanr300208</dc:creator><description>&lt;p&gt;yes, I agree, we can have a text field with validation. and finally, convert into date-time value.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: how to default time in date time field on page load.</title><link>https://community.appian.com/thread/84679?ContentTypeID=1</link><pubDate>Tue, 17 Aug 2021 15:31:35 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:8f444525-ae87-4ebd-b683-e33c9ce1b812</guid><dc:creator>Chris</dc:creator><description>&lt;p&gt;Similar to what Mike noted, you can always use a combination of 2 fields with a!sideBySideLayout().&amp;nbsp; Date field (no default) for the date portion, then a text field with validation, or dropdown, etc for the time field - combine back together during save from local variables into your CDT.&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="csharp"&gt;a!localVariables(
  local!date: null,
  local!time: &amp;quot;12:00 AM&amp;quot;,
  a!sideBySideLayout(
    items: {
      a!sideBySideItem(
        width: &amp;quot;MINIMIZE&amp;quot;,
        item: a!dateField(
          label: &amp;quot;Date&amp;quot;,
          value: local!date,
          saveInto: local!date
        )
      ),
      a!sideBySideItem(
        width: &amp;quot;MINIMIZE&amp;quot;,
        item: a!textField(
          label: &amp;quot;Time&amp;quot;,
          value: local!time,
          saveInto: local!time
        )
      )
    }
  )
)&lt;/pre&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: how to default time in date time field on page load.</title><link>https://community.appian.com/thread/84646?ContentTypeID=1</link><pubDate>Mon, 16 Aug 2021 20:26:00 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:1f53c6ac-b995-427f-b312-7986ac119753</guid><dc:creator>sugasanr300208</dc:creator><description>&lt;p&gt;yes, the user wants to change the time. We will let our business know it is not possible to do so. Thank you&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: how to default time in date time field on page load.</title><link>https://community.appian.com/thread/84642?ContentTypeID=1</link><pubDate>Mon, 16 Aug 2021 19:38:53 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:8f8a045c-cbb1-46ab-be85-36517ab160c7</guid><dc:creator>Mike Schmitt</dc:creator><description>&lt;p&gt;Does the user need to be able to change the time?&amp;nbsp; If so then you&amp;#39;ll be stuck either populating both the date and time, or populating neither.&amp;nbsp; If the user *doesn&amp;#39;t* need to be able to change the time, then you could just use a DateField and display &amp;quot;12:00 PM&amp;quot; nearby in some sort of read-only text.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: how to default time in date time field on page load.</title><link>https://community.appian.com/thread/84638?ContentTypeID=1</link><pubDate>Mon, 16 Aug 2021 19:16:20 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:c23d0af5-f970-4b50-b6f4-b1d2e022505d</guid><dc:creator>sugasanr300208</dc:creator><description>&lt;p&gt;yes, the requirement is to have the default time set to 12 am on the date-time field.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Even we cannot populate time when a user enters date alone.&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: how to default time in date time field on page load.</title><link>https://community.appian.com/thread/84637?ContentTypeID=1</link><pubDate>Mon, 16 Aug 2021 19:12:41 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:4a426cfc-7b45-4f47-9604-143458333cf9</guid><dc:creator>Mike Schmitt</dc:creator><description>&lt;p&gt;Oh, sorry I didn&amp;#39;t notice that piece of the requirement before.&amp;nbsp; Basically you can&amp;#39;t.&amp;nbsp; You can either set the date and time, or leave it blank.&amp;nbsp; The date/time data type cannot hold a time without a date.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: how to default time in date time field on page load.</title><link>https://community.appian.com/thread/84635?ContentTypeID=1</link><pubDate>Mon, 16 Aug 2021 18:57:26 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:4c3969df-70da-4455-94dd-b4c3e9176ab6</guid><dc:creator>sugasanr300208</dc:creator><description>&lt;p&gt;how can I pass in time, not date in PV? can you give me a sample?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: how to default time in date time field on page load.</title><link>https://community.appian.com/thread/84631?ContentTypeID=1</link><pubDate>Mon, 16 Aug 2021 18:08:39 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:91fa6b83-c953-42d8-a3c3-bf03a16eac9d</guid><dc:creator>Mike Schmitt</dc:creator><description>&lt;p&gt;Then in your process flow prior to reaching the form, use a script task to prepopulate the PV with the data you want, prior to passing it into the SAIL form in the user input task node.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: how to default time in date time field on page load.</title><link>https://community.appian.com/thread/84630?ContentTypeID=1</link><pubDate>Mon, 16 Aug 2021 18:07:31 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:8002be55-9858-4c66-b598-4ae6bcd21aa4</guid><dc:creator>sugasanr300208</dc:creator><description>&lt;p&gt;thank you for your quick response. Yes, we allow users to edit this date-time field. we have this field in the form&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: how to default time in date time field on page load.</title><link>https://community.appian.com/thread/84623?ContentTypeID=1</link><pubDate>Mon, 16 Aug 2021 16:01:08 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:5a577a41-a18f-462d-bdd9-2dd1d6b04538</guid><dc:creator>Mike Schmitt</dc:creator><description>&lt;p&gt;Where is the &amp;quot;page&amp;quot; and what is it doing?&amp;nbsp; Is this a form where a user will be able to make edits, or display-only?&amp;nbsp; The way you would pre-populate such data depends on these details you didn&amp;#39;t include.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>