<?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: Validate answers based on previous values in ArcGIS Survey123 Questions</title>
    <link>https://community.esri.com/t5/arcgis-survey123-questions/validate-answers-based-on-previous-values/m-p/864546#M26667</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks &lt;A href="https://community.esri.com/migrated-users/3263"&gt;James Tedrick&lt;/A&gt;‌!&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 08 May 2018 18:54:48 GMT</pubDate>
    <dc:creator>AndrewHargreaves2</dc:creator>
    <dc:date>2018-05-08T18:54:48Z</dc:date>
    <item>
      <title>Validate answers based on previous values</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/validate-answers-based-on-previous-values/m-p/864544#M26665</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi &lt;A href="https://community.esri.com/migrated-users/3263"&gt;James Tedrick&lt;/A&gt;‌ / &lt;A href="https://community.esri.com/migrated-users/3966"&gt;Ismael Chivite&lt;/A&gt;‌&lt;/P&gt;&lt;P&gt;I'm struggling to understand how to implement the following validation step:&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;SPAN&gt;If {TURNS} &amp;lt;&amp;gt; 0 then {FINALTORQUE} &amp;gt; 0&amp;nbsp;&lt;/SPAN&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;&lt;SPAN style="font-size: 11.0pt;"&gt;However, I'm not able to place a formula in the&amp;nbsp;'constraint' or 'validation' fields - only the calculation field. The only other option I can think of is to create a 'calculation' field and if these two sum to 0 then I show a warning. Sadly, though this doesn't &lt;STRONG&gt;&lt;EM&gt;force&lt;/EM&gt; &lt;/STRONG&gt;the user the enter a higher value.&amp;nbsp;&lt;BR /&gt; &lt;BR /&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 11.0pt;"&gt;Please can I ask your advice?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 11.0pt;"&gt;Thanks&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 08 May 2018 15:28:21 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/validate-answers-based-on-previous-values/m-p/864544#M26665</guid>
      <dc:creator>AndrewHargreaves2</dc:creator>
      <dc:date>2018-05-08T15:28:21Z</dc:date>
    </item>
    <item>
      <title>Re: Validate answers based on previous values</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/validate-answers-based-on-previous-values/m-p/864545#M26666</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Andrew,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Per&amp;nbsp;&lt;A class="link-titled" href="http://doc.arcgis.com/en/survey123/desktop/create-surveys/xlsformformulas.htm" title="http://doc.arcgis.com/en/survey123/desktop/create-surveys/xlsformformulas.htm"&gt;Formulas—Survey123 for ArcGIS | ArcGIS&lt;/A&gt;&amp;nbsp;, inequality is expressed using != , not &amp;lt;&amp;gt;. &amp;nbsp;It appears that you are implying that whatever value submitted is valid if the number of turns is 0; that would lead to an if() statement of:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if(${turns} != 0, (. &amp;gt; 0), true())&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;for the constraint of the finaltorque question - "if the number of turns is not equal to zero, then check if this value is greater than zero; otherwise, any value is fine".&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 08 May 2018 15:49:32 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/validate-answers-based-on-previous-values/m-p/864545#M26666</guid>
      <dc:creator>JamesTedrick</dc:creator>
      <dc:date>2018-05-08T15:49:32Z</dc:date>
    </item>
    <item>
      <title>Re: Validate answers based on previous values</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/validate-answers-based-on-previous-values/m-p/864546#M26667</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks &lt;A href="https://community.esri.com/migrated-users/3263"&gt;James Tedrick&lt;/A&gt;‌!&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 08 May 2018 18:54:48 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/validate-answers-based-on-previous-values/m-p/864546#M26667</guid>
      <dc:creator>AndrewHargreaves2</dc:creator>
      <dc:date>2018-05-08T18:54:48Z</dc:date>
    </item>
  </channel>
</rss>

