<?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 Constraint message not appearing for dateTime field in ArcGIS Survey123 Questions</title>
    <link>https://community.esri.com/t5/arcgis-survey123-questions/constraint-message-not-appearing-for-datetime/m-p/1015880#M31882</link>
    <description>&lt;P&gt;I have a survey form created in Survey123 Connect which has style settings of &lt;EM&gt;theme-grid pages&lt;/EM&gt;. I have several fields with constraints, most of which work as expected. However I have one field (&lt;EM&gt;TimeOnSite&lt;/EM&gt;) where neither the constraint message (default of &lt;U&gt;invalid&lt;/U&gt;, or custom wording), nor the red box that is expected to occur appear. However, the survey form does 'push' the user back to the form page containing the incorrect field for correction when trying to submit an incorrect entry (but with no guidance on the error or indication exactly which field as the red square doesn't appear). The only instance that results in the correct constraint message and red box appearing is if the time is changed to a future time (in combination with the current date),&amp;nbsp;&lt;STRONG&gt;not&lt;/STRONG&gt; if just the date is set to a future date and the time is left unedited (i.e., using current default time). If I change both the date and time to a point in the future, the constraint message and box do not appear. If I change it &lt;STRONG&gt;just&lt;/STRONG&gt; the time to a time beyond now (keeping the date as today), the constraint message and box do appear.&amp;nbsp;&lt;/P&gt;&lt;P&gt;In contrast, the &lt;EM&gt;TimeOffSite&lt;/EM&gt; field (details below) does work as expected, including both constraint message and red box.&lt;BR /&gt;&lt;BR /&gt;The field details are as follows:&lt;/P&gt;&lt;TABLE border="1" width="60%"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD width="10%" height="24px"&gt;&lt;STRONG&gt;type&lt;/STRONG&gt;&lt;/TD&gt;&lt;TD width="10%"&gt;&lt;STRONG&gt;name&lt;/STRONG&gt;&lt;/TD&gt;&lt;TD width="10%"&gt;&lt;STRONG&gt;constraint&lt;/STRONG&gt;&lt;/TD&gt;&lt;TD width="10%"&gt;&lt;STRONG&gt;constraint_message&lt;/STRONG&gt;&lt;/TD&gt;&lt;TD width="10%" height="24px"&gt;&lt;STRONG&gt;default&lt;/STRONG&gt;&lt;/TD&gt;&lt;TD width="10%" height="24px"&gt;&lt;STRONG&gt;relevant&lt;/STRONG&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD width="10%" height="24px"&gt;dateTime&lt;/TD&gt;&lt;TD width="10%" height="24px"&gt;TimeOnSite&lt;/TD&gt;&lt;TD width="10%"&gt;.&amp;lt;=now()&lt;/TD&gt;&lt;TD width="10%"&gt;Cannot be in the future&lt;/TD&gt;&lt;TD width="10%" height="24px"&gt;now()&lt;/TD&gt;&lt;TD width="10%" height="24px"&gt;${SurveyType}!='AdHoc'&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD width="10%" height="24px"&gt;dateTime&lt;/TD&gt;&lt;TD width="10%" height="24px"&gt;TimeOffSite&lt;/TD&gt;&lt;TD width="10%" height="24px"&gt;(.&amp;lt;=now()) and (.&amp;gt;=${TimeOnSite})&lt;/TD&gt;&lt;TD width="10%" height="24px"&gt;Cannot be in the future or before the start date and time&lt;/TD&gt;&lt;TD width="10%" height="24px"&gt;now()&lt;/TD&gt;&lt;TD width="10%" height="24px"&gt;string-length(${TimeOnSite})&amp;gt;0 and ${SurveyPossible}='yes'&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Does anyone have any insights as to why the red box and constraint may not be appearing for the&amp;nbsp;&lt;EM&gt;TimeOnSite&lt;/EM&gt; field? I have also tried setting the constraint formula as&amp;nbsp;&lt;EM&gt;(.&amp;lt;=now()) and (.&amp;lt;=today())&amp;nbsp;&lt;/EM&gt;but this has the same result.&lt;BR /&gt;Many thanks,&lt;BR /&gt;Rob&lt;/P&gt;</description>
    <pubDate>Tue, 12 Jan 2021 11:49:01 GMT</pubDate>
    <dc:creator>DataOfficer</dc:creator>
    <dc:date>2021-01-12T11:49:01Z</dc:date>
    <item>
      <title>Constraint message not appearing for dateTime field</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/constraint-message-not-appearing-for-datetime/m-p/1015880#M31882</link>
      <description>&lt;P&gt;I have a survey form created in Survey123 Connect which has style settings of &lt;EM&gt;theme-grid pages&lt;/EM&gt;. I have several fields with constraints, most of which work as expected. However I have one field (&lt;EM&gt;TimeOnSite&lt;/EM&gt;) where neither the constraint message (default of &lt;U&gt;invalid&lt;/U&gt;, or custom wording), nor the red box that is expected to occur appear. However, the survey form does 'push' the user back to the form page containing the incorrect field for correction when trying to submit an incorrect entry (but with no guidance on the error or indication exactly which field as the red square doesn't appear). The only instance that results in the correct constraint message and red box appearing is if the time is changed to a future time (in combination with the current date),&amp;nbsp;&lt;STRONG&gt;not&lt;/STRONG&gt; if just the date is set to a future date and the time is left unedited (i.e., using current default time). If I change both the date and time to a point in the future, the constraint message and box do not appear. If I change it &lt;STRONG&gt;just&lt;/STRONG&gt; the time to a time beyond now (keeping the date as today), the constraint message and box do appear.&amp;nbsp;&lt;/P&gt;&lt;P&gt;In contrast, the &lt;EM&gt;TimeOffSite&lt;/EM&gt; field (details below) does work as expected, including both constraint message and red box.&lt;BR /&gt;&lt;BR /&gt;The field details are as follows:&lt;/P&gt;&lt;TABLE border="1" width="60%"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD width="10%" height="24px"&gt;&lt;STRONG&gt;type&lt;/STRONG&gt;&lt;/TD&gt;&lt;TD width="10%"&gt;&lt;STRONG&gt;name&lt;/STRONG&gt;&lt;/TD&gt;&lt;TD width="10%"&gt;&lt;STRONG&gt;constraint&lt;/STRONG&gt;&lt;/TD&gt;&lt;TD width="10%"&gt;&lt;STRONG&gt;constraint_message&lt;/STRONG&gt;&lt;/TD&gt;&lt;TD width="10%" height="24px"&gt;&lt;STRONG&gt;default&lt;/STRONG&gt;&lt;/TD&gt;&lt;TD width="10%" height="24px"&gt;&lt;STRONG&gt;relevant&lt;/STRONG&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD width="10%" height="24px"&gt;dateTime&lt;/TD&gt;&lt;TD width="10%" height="24px"&gt;TimeOnSite&lt;/TD&gt;&lt;TD width="10%"&gt;.&amp;lt;=now()&lt;/TD&gt;&lt;TD width="10%"&gt;Cannot be in the future&lt;/TD&gt;&lt;TD width="10%" height="24px"&gt;now()&lt;/TD&gt;&lt;TD width="10%" height="24px"&gt;${SurveyType}!='AdHoc'&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD width="10%" height="24px"&gt;dateTime&lt;/TD&gt;&lt;TD width="10%" height="24px"&gt;TimeOffSite&lt;/TD&gt;&lt;TD width="10%" height="24px"&gt;(.&amp;lt;=now()) and (.&amp;gt;=${TimeOnSite})&lt;/TD&gt;&lt;TD width="10%" height="24px"&gt;Cannot be in the future or before the start date and time&lt;/TD&gt;&lt;TD width="10%" height="24px"&gt;now()&lt;/TD&gt;&lt;TD width="10%" height="24px"&gt;string-length(${TimeOnSite})&amp;gt;0 and ${SurveyPossible}='yes'&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Does anyone have any insights as to why the red box and constraint may not be appearing for the&amp;nbsp;&lt;EM&gt;TimeOnSite&lt;/EM&gt; field? I have also tried setting the constraint formula as&amp;nbsp;&lt;EM&gt;(.&amp;lt;=now()) and (.&amp;lt;=today())&amp;nbsp;&lt;/EM&gt;but this has the same result.&lt;BR /&gt;Many thanks,&lt;BR /&gt;Rob&lt;/P&gt;</description>
      <pubDate>Tue, 12 Jan 2021 11:49:01 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/constraint-message-not-appearing-for-datetime/m-p/1015880#M31882</guid>
      <dc:creator>DataOfficer</dc:creator>
      <dc:date>2021-01-12T11:49:01Z</dc:date>
    </item>
    <item>
      <title>Re: Constraint message not appearing for dateTime field</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/constraint-message-not-appearing-for-datetime/m-p/1015976#M31889</link>
      <description>&lt;P&gt;Try a space between . and &amp;lt; also . and &amp;gt;.&amp;nbsp; At times these get interpreted as HTML and get messed up.&amp;nbsp; I cant find the old post on this but give it a shot.&amp;nbsp; Not sure if it was fixed yet.&amp;nbsp; Just a shot in the dark.&lt;/P&gt;</description>
      <pubDate>Tue, 12 Jan 2021 16:10:21 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/constraint-message-not-appearing-for-datetime/m-p/1015976#M31889</guid>
      <dc:creator>DougBrowning</dc:creator>
      <dc:date>2021-01-12T16:10:21Z</dc:date>
    </item>
    <item>
      <title>Re: Constraint message not appearing for dateTime field</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/constraint-message-not-appearing-for-datetime/m-p/1015983#M31890</link>
      <description>&lt;P&gt;Thanks Doug. I've just tried your suggestion but unfortunately it doesn't resolve the issue.&lt;BR /&gt;It appears to be understanding the constraint expression correctly as it is forcing the user back to the page containing that field to correct it. However the display of the constraint message and red box is seemingly linked to particular parts of the field (time rather than date).&lt;/P&gt;</description>
      <pubDate>Tue, 12 Jan 2021 16:18:17 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/constraint-message-not-appearing-for-datetime/m-p/1015983#M31890</guid>
      <dc:creator>DataOfficer</dc:creator>
      <dc:date>2021-01-12T16:18:17Z</dc:date>
    </item>
  </channel>
</rss>

