<?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: Why is date constraint not working? in ArcGIS Survey123 Questions</title>
    <link>https://community.esri.com/t5/arcgis-survey123-questions/why-is-date-constraint-not-working/m-p/847470#M22403</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Attaching slightly modified XLS file. Tested on 1.8. I hope it works for you.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 30 Sep 2016 01:16:24 GMT</pubDate>
    <dc:creator>IsmaelChivite</dc:creator>
    <dc:date>2016-09-30T01:16:24Z</dc:date>
    <item>
      <title>Why is date constraint not working?</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/why-is-date-constraint-not-working/m-p/847463#M22396</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="background-color: #ffffff; border: 0px;"&gt;In Survey123, I have a constraint set up on a date question to restrict the reported date of harvest to be between a minimum and maximum date where the minimum and maximum date are determined by the season of harvest. &amp;nbsp;The constraint was working appropriately in earlier versions of Survey123, but the constraint no longer works since the latest update. &amp;nbsp;I'm running Survey123 Connect version 1.7.35 and Survey123 1.7.20 on an iPhone. &amp;nbsp;The survey allows me to enter and save any date regardless of whether it falls between the min and max dates or not. &amp;nbsp;A simplified version of the design of the min and max dates is:&lt;/P&gt;&lt;P style="background-color: #ffffff; border: 0px;"&gt;&lt;A href="https://community.esri.com/legacyfs/online/231833_min_max_date.png"&gt;&lt;IMG alt="" class="image-1 jive-image j-img-original" height="90" src="https://community.esri.com/legacyfs/online/231845_min_max_date.png" style="border: 0px; font-weight: inherit; margin: 2px 0px 0px;" width="932" /&gt;&lt;/A&gt;&lt;/P&gt;&lt;P style="background-color: #ffffff; border: 0px;"&gt;&lt;/P&gt;&lt;P style="background-color: #ffffff; border: 0px;"&gt;I use the max1 and min1 variables in the constraint for the harvest date:&lt;/P&gt;&lt;P style="background-color: #ffffff; border: 0px;"&gt;&lt;A href="https://community.esri.com/legacyfs/online/231834_date_constraint.png"&gt;&lt;IMG alt="" class="image-2 jive-image j-img-original" height="112" src="https://community.esri.com/legacyfs/online/231846_date_constraint.png" style="border: 0px; font-weight: inherit; margin: 2px 0px 0px;" width="767" /&gt;&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 21 Sep 2016 18:44:56 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/why-is-date-constraint-not-working/m-p/847463#M22396</guid>
      <dc:creator>SarahMayhew</dc:creator>
      <dc:date>2016-09-21T18:44:56Z</dc:date>
    </item>
    <item>
      <title>Re: Why is date constraint not working?</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/why-is-date-constraint-not-working/m-p/847464#M22397</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi. Would you please share your XLSForm? You can attach it to your response by using the 'Advanced Editor'. If for any reason you do not want to share the XLSFile in this thread, please open an Esri Technical Support incident so we can look at it. Thanks!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 21 Sep 2016 20:04:39 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/why-is-date-constraint-not-working/m-p/847464#M22397</guid>
      <dc:creator>IsmaelChivite</dc:creator>
      <dc:date>2016-09-21T20:04:39Z</dc:date>
    </item>
    <item>
      <title>Re: Why is date constraint not working?</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/why-is-date-constraint-not-working/m-p/847465#M22398</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I've noticed this as well. In our scenario, a re-audit date was constrained to within 2 months of the audit date:&lt;/P&gt;&lt;P&gt;My constraint field is called ${DueDate}, is based off of the AuditDate field (default is today()) and is set to:&lt;/P&gt;&lt;P&gt;.&amp;gt;date(${AuditDate}) and . &amp;lt;date(${AuditDate}+ (60.88*24*60*60*1000))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The constraint worked perfectly in Survey123 Connect &amp;amp; Survey123 1.6.11 but not in 1.7.35/1.7.20.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 22 Sep 2016 08:34:08 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/why-is-date-constraint-not-working/m-p/847465#M22398</guid>
      <dc:creator>CarmelConnolly</dc:creator>
      <dc:date>2016-09-22T08:34:08Z</dc:date>
    </item>
    <item>
      <title>Re: Why is date constraint not working?</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/why-is-date-constraint-not-working/m-p/847466#M22399</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Carmel,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for bringing this to our attention. I was able to repro your issue in Survey123 Connect v1.7.35 as you described and confirmed that it worked in the previous v1.6 release. We'll work to address this item for the v1.8 release.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;@Sarah:&lt;/STRONG&gt; If you could please provide your XLSForm, we can look into your issue further. Or, please open an Esri Tech Support issue.&lt;BR /&gt;&lt;BR /&gt;Hope this helps,&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 22 Sep 2016 19:23:25 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/why-is-date-constraint-not-working/m-p/847466#M22399</guid>
      <dc:creator>DerekLaw</dc:creator>
      <dc:date>2016-09-22T19:23:25Z</dc:date>
    </item>
    <item>
      <title>Re: Why is date constraint not working?</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/why-is-date-constraint-not-working/m-p/847467#M22400</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have attached an .xlsx with the relevant rows for harvest season and date. &amp;nbsp;Thanks for looking into this. &amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 22 Sep 2016 23:19:18 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/why-is-date-constraint-not-working/m-p/847467#M22400</guid>
      <dc:creator>SarahMayhew</dc:creator>
      <dc:date>2016-09-22T23:19:18Z</dc:date>
    </item>
    <item>
      <title>Re: Why is date constraint not working?</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/why-is-date-constraint-not-working/m-p/847468#M22401</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Sarah, having the XLSFile helped a lot. I was able to reproduce the issue in 1.7. Will do our best to fix this as soon as possible. Stay tuned for the 1.8 announcement.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;By the way, it looks like you could really benefit from the newly added pulldata function. See the help topic here: &lt;A class="link-titled" href="https://doc.arcgis.com/en/survey123/desktop/create-surveys/xlsformformulas.htm#ESRI_SECTION1_A3C2F3566F974734B55ECECD31C6CA91" title="https://doc.arcgis.com/en/survey123/desktop/create-surveys/xlsformformulas.htm#ESRI_SECTION1_A3C2F3566F974734B55ECECD31C6CA91"&gt;Formulas—Survey123 for ArcGIS | ArcGIS&lt;/A&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; With pulldata you can really simplify your calculate expressions removing the concatenated if statements and replacing them with pulldata expressions. Just an idea.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 23 Sep 2016 00:40:10 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/why-is-date-constraint-not-working/m-p/847468#M22401</guid>
      <dc:creator>IsmaelChivite</dc:creator>
      <dc:date>2016-09-23T00:40:10Z</dc:date>
    </item>
    <item>
      <title>Re: Why is date constraint not working?</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/why-is-date-constraint-not-working/m-p/847469#M22402</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Ismael - Thank you for looking into the fix for the date constraints. &amp;nbsp;I have tried the pulldata function, but I'm not sure if it's going to work. &amp;nbsp;Since the date constraint isn't working, I can't give it a proper test, but the attached .xlsx and info.csv give me errors. &amp;nbsp;If I remove the date function from rows 8 and 9 in the .xlsx and simply tell it to display ${max1} and ${min1} then it works fine. &amp;nbsp;But it doesn't seem to like converting them to dates.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 27 Sep 2016 18:32:22 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/why-is-date-constraint-not-working/m-p/847469#M22402</guid>
      <dc:creator>SarahMayhew</dc:creator>
      <dc:date>2016-09-27T18:32:22Z</dc:date>
    </item>
    <item>
      <title>Re: Why is date constraint not working?</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/why-is-date-constraint-not-working/m-p/847470#M22403</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Attaching slightly modified XLS file. Tested on 1.8. I hope it works for you.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 30 Sep 2016 01:16:24 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/why-is-date-constraint-not-working/m-p/847470#M22403</guid>
      <dc:creator>IsmaelChivite</dc:creator>
      <dc:date>2016-09-30T01:16:24Z</dc:date>
    </item>
  </channel>
</rss>

