<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: format-date issue in web form in ArcGIS Survey123 Questions</title>
    <link>https://community.esri.com/t5/arcgis-survey123-questions/format-date-issue-in-web-form/m-p/1168622#M42407</link>
    <description>&lt;P&gt;once would generally be used like this:&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;once(concat(${observername},"_",format-date(now(), '%y%m%d%H%M%S')))&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;However, it is not guaranteed that ${observername} has a value when the form is loaded. You may want to consider using&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;concat(${observername},"_",format-date(now(), '%y%m%d%H%M%S')&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 28 Apr 2022 04:34:00 GMT</pubDate>
    <dc:creator>IsmaelChivite</dc:creator>
    <dc:date>2022-04-28T04:34:00Z</dc:date>
    <item>
      <title>format-date issue in web form</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/format-date-issue-in-web-form/m-p/1168598#M42405</link>
      <description>&lt;P&gt;Hi All&lt;/P&gt;&lt;P&gt;I have created a form in survey123 connect and as part of that I create a unique ID which is a concat of the user ID and the current date and time:&lt;/P&gt;&lt;P&gt;concat(${observername},"_",format-date(once(now()), '%y%m%d%H%M%S'))&lt;/P&gt;&lt;P&gt;This works fine in the Survey123 app eg&amp;nbsp;9359_220427140725&lt;/P&gt;&lt;P&gt;However if I use the webform (desktop browser) I get this result:&amp;nbsp;9359_Invalid Date&lt;/P&gt;&lt;P&gt;Does anyone have any suggestions?&lt;/P&gt;&lt;P&gt;Cheers, Chris&lt;/P&gt;</description>
      <pubDate>Wed, 27 Apr 2022 23:23:27 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/format-date-issue-in-web-form/m-p/1168598#M42405</guid>
      <dc:creator>ChrisRoberts2</dc:creator>
      <dc:date>2022-04-27T23:23:27Z</dc:date>
    </item>
    <item>
      <title>Re: format-date issue in web form</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/format-date-issue-in-web-form/m-p/1168622#M42407</link>
      <description>&lt;P&gt;once would generally be used like this:&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;once(concat(${observername},"_",format-date(now(), '%y%m%d%H%M%S')))&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;However, it is not guaranteed that ${observername} has a value when the form is loaded. You may want to consider using&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;concat(${observername},"_",format-date(now(), '%y%m%d%H%M%S')&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 28 Apr 2022 04:34:00 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/format-date-issue-in-web-form/m-p/1168622#M42407</guid>
      <dc:creator>IsmaelChivite</dc:creator>
      <dc:date>2022-04-28T04:34:00Z</dc:date>
    </item>
    <item>
      <title>Re: format-date issue in web form</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/format-date-issue-in-web-form/m-p/1168625#M42408</link>
      <description>&lt;P&gt;Thanks for the rapid response Ismael!&lt;/P&gt;&lt;P&gt;You are right that with &lt;STRONG&gt;once&lt;/STRONG&gt;&amp;nbsp;the observer id wasnt populating.&amp;nbsp; However the second option works...although I had to add another close bracket at the end &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;&lt;P&gt;concat(${observername},"_",format-date(now(), '%y%m%d%H%M%S'))&lt;/P&gt;</description>
      <pubDate>Thu, 28 Apr 2022 04:53:02 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/format-date-issue-in-web-form/m-p/1168625#M42408</guid>
      <dc:creator>ChrisRoberts2</dc:creator>
      <dc:date>2022-04-28T04:53:02Z</dc:date>
    </item>
  </channel>
</rss>

