<?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 Issue submitting time in 9999 format in ArcGIS Survey123 Questions</title>
    <link>https://community.esri.com/t5/arcgis-survey123-questions/issue-submitting-time-in-9999-format/m-p/845970#M22048</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have a integer field I am trying to use to collect time in military time ie. 0834 or 1334, but only the 2nd time is working. For the 0834 time I get a "field is invalid" error.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have this line in the constraint column:&lt;/P&gt;&lt;P&gt;(int(substr(.,0,2))&amp;lt;24) and (int(substr(.,3,4))&amp;lt;60)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I also have 4 in the bind::esri:fieldlength column&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Does anyone know a workaround for this issue. An input mask will not work for my purposes. Thank you in advance.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 10 Apr 2018 13:49:06 GMT</pubDate>
    <dc:creator>JohnMarra</dc:creator>
    <dc:date>2018-04-10T13:49:06Z</dc:date>
    <item>
      <title>Issue submitting time in 9999 format</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/issue-submitting-time-in-9999-format/m-p/845970#M22048</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have a integer field I am trying to use to collect time in military time ie. 0834 or 1334, but only the 2nd time is working. For the 0834 time I get a "field is invalid" error.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have this line in the constraint column:&lt;/P&gt;&lt;P&gt;(int(substr(.,0,2))&amp;lt;24) and (int(substr(.,3,4))&amp;lt;60)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I also have 4 in the bind::esri:fieldlength column&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Does anyone know a workaround for this issue. An input mask will not work for my purposes. Thank you in advance.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 10 Apr 2018 13:49:06 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/issue-submitting-time-in-9999-format/m-p/845970#M22048</guid>
      <dc:creator>JohnMarra</dc:creator>
      <dc:date>2018-04-10T13:49:06Z</dc:date>
    </item>
    <item>
      <title>Re: Issue submitting time in 9999 format</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/issue-submitting-time-in-9999-format/m-p/845971#M22049</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi John,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I believe the issue is that you are storing the time as an integer and then using text manipulation functions in your check. &amp;nbsp;Leading 0's don't matter for numbers, so when you type in 0845, it gets stored as 845; your constraint check will then see the 'hour' check as 84, not 08. &amp;nbsp;I would suggest that if you want to input time this way, you have a text question; this will preserve the leading 0's. &amp;nbsp;You can test this by using a value like 0179 -&amp;gt; it gets checked as 17 &amp;amp; 9 and thus passes&amp;nbsp;the constraint.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You should also do a check for overall string length; while you may have the fieldLength (which in this context should only apply to text/string, integers are either long or short, depending on the size&amp;nbsp;values stored), that doesn't prevent someone from entering more text (if that happens, submission fails with a 'string truncated' error).&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 10 Apr 2018 17:28:30 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/issue-submitting-time-in-9999-format/m-p/845971#M22049</guid>
      <dc:creator>JamesTedrick</dc:creator>
      <dc:date>2018-04-10T17:28:30Z</dc:date>
    </item>
    <item>
      <title>Re: Issue submitting time in 9999 format</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/issue-submitting-time-in-9999-format/m-p/845972#M22050</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Is there a way to have the&amp;nbsp;input to a text field only show numbers rather than a full keyboard, as it would if the field were were an integer or decimal field?&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 10 Apr 2018 20:52:08 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/issue-submitting-time-in-9999-format/m-p/845972#M22050</guid>
      <dc:creator>JohnMarra</dc:creator>
      <dc:date>2018-04-10T20:52:08Z</dc:date>
    </item>
    <item>
      <title>Re: Issue submitting time in 9999 format</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/issue-submitting-time-in-9999-format/m-p/845973#M22051</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi John,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can apply the numbers appearance to the text question to have a numeric keypad display below the field, but it does not alter the keyboard layout.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 10 Apr 2018 23:09:22 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/issue-submitting-time-in-9999-format/m-p/845973#M22051</guid>
      <dc:creator>JamesTedrick</dc:creator>
      <dc:date>2018-04-10T23:09:22Z</dc:date>
    </item>
  </channel>
</rss>

