<?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: Conditional constraint on a repeat in ArcGIS Survey123 Questions</title>
    <link>https://community.esri.com/t5/arcgis-survey123-questions/conditional-constraint-on-a-repeat/m-p/1379622#M54597</link>
    <description>&lt;P&gt;Thanks Doug that worked!&lt;/P&gt;&lt;P&gt;The reason behind is to have a sort of fail safe. We work with a lot of college students or fresh out of college and its to make sure they are not entering data on accident as it could change our end results in a bad way. We typically use paper copies and it has been a headache to read their notes sometimes especially when they go back to school and you cant ask them. Appreciate the help!&lt;/P&gt;</description>
    <pubDate>Thu, 08 Feb 2024 13:19:31 GMT</pubDate>
    <dc:creator>BrennenW</dc:creator>
    <dc:date>2024-02-08T13:19:31Z</dc:date>
    <item>
      <title>Conditional constraint on a repeat</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/conditional-constraint-on-a-repeat/m-p/1379315#M54583</link>
      <description>&lt;P&gt;Im looking to make a conditional constraint on a repeat based off a previous answer.&lt;/P&gt;&lt;P&gt;This is how its laid out:&lt;/P&gt;&lt;P&gt;More than 1?&lt;/P&gt;&lt;P&gt;Yes or No&lt;/P&gt;&lt;P&gt;If selected yes I want the repeat following to have as many repeats as possible.&lt;/P&gt;&lt;P&gt;If selected no I want there to be only one repeat and not let them proceed with additional repeats.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any clue if this is possible?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 07 Feb 2024 19:27:21 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/conditional-constraint-on-a-repeat/m-p/1379315#M54583</guid>
      <dc:creator>BrennenW</dc:creator>
      <dc:date>2024-02-07T19:27:21Z</dc:date>
    </item>
    <item>
      <title>Re: Conditional constraint on a repeat</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/conditional-constraint-on-a-repeat/m-p/1379319#M54584</link>
      <description>&lt;P&gt;The way I do it is use a field count(somefieldinrepeat)&amp;nbsp; and then put a constraint on that.&lt;/P&gt;&lt;P&gt;For you you can then use a if.&amp;nbsp; Something like&lt;/P&gt;&lt;P&gt;if(picked no, countfield = 1, 1)&amp;nbsp; the else is just 1 since if they pick yes then its all good.&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;You can play with where to place the field with constraint.&amp;nbsp; I think count works inside the repeat so if you have it there is should stop them from creating a second repeat right away.&lt;/P&gt;&lt;P&gt;Hope that makes sense.&lt;/P&gt;</description>
      <pubDate>Wed, 07 Feb 2024 19:32:40 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/conditional-constraint-on-a-repeat/m-p/1379319#M54584</guid>
      <dc:creator>DougBrowning</dc:creator>
      <dc:date>2024-02-07T19:32:40Z</dc:date>
    </item>
    <item>
      <title>Re: Conditional constraint on a repeat</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/conditional-constraint-on-a-repeat/m-p/1379344#M54585</link>
      <description>&lt;P&gt;I guess im a little confused by what you mean. I attached my form below. I was able to get a constraint on the no answer and counting the number of repeats &amp;lt;1 . However, It wouldn't let me go more than 1 repeat with a yes answer. I deleted that from the form as it wasn't working.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 07 Feb 2024 20:17:00 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/conditional-constraint-on-a-repeat/m-p/1379344#M54585</guid>
      <dc:creator>BrennenW</dc:creator>
      <dc:date>2024-02-07T20:17:00Z</dc:date>
    </item>
    <item>
      <title>Re: Conditional constraint on a repeat</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/conditional-constraint-on-a-repeat/m-p/1379377#M54587</link>
      <description>&lt;P&gt;Short answer is '&lt;STRONG&gt;no&lt;/STRONG&gt;', that isn't possible. As soon as you use the &lt;STRONG&gt;repeat_count&lt;/STRONG&gt; column, you need a number. Longer answer is "kinda yes'.&lt;/P&gt;&lt;P&gt;This example will not work when "yes" is selected, as no number is provided, so the repeat disappears:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="abureaux_1-1707340367026.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/93996i53CA7CC2A1A291BC/image-size/medium?v=v2&amp;amp;px=400" role="button" title="abureaux_1-1707340367026.png" alt="abureaux_1-1707340367026.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;This example &lt;EM&gt;will&lt;/EM&gt; work how you want since there is always a number, but has an extra step:&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="abureaux_4-1707340631737.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/93999i3410A6B7D10641EB/image-size/medium?v=v2&amp;amp;px=400" role="button" title="abureaux_4-1707340631737.png" alt="abureaux_4-1707340631737.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;There would be other ways to do this, but this example uses the repeat_count column specifically.&lt;/P&gt;</description>
      <pubDate>Wed, 07 Feb 2024 21:17:20 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/conditional-constraint-on-a-repeat/m-p/1379377#M54587</guid>
      <dc:creator>abureaux</dc:creator>
      <dc:date>2024-02-07T21:17:20Z</dc:date>
    </item>
    <item>
      <title>Re: Conditional constraint on a repeat</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/conditional-constraint-on-a-repeat/m-p/1379465#M54593</link>
      <description>&lt;P&gt;Here is a sample attached.&amp;nbsp; It stops the user from saving a second repeat and gives them a big red warning on why.&lt;/P&gt;&lt;P&gt;I have no idea why you would make a form like this just let them make 1 or more, why ask?&amp;nbsp; Seems weird but I guess you have a reason.&lt;/P&gt;&lt;P&gt;It does not use repeat_count as that never works out.&lt;/P&gt;&lt;P&gt;Note the message does not fire until they pick the second question value.&amp;nbsp; But if you want you can change that by adding a secret hidden field that has a default value and then do your check on that if you want.&amp;nbsp; I can show this too if you do not get it.&lt;/P&gt;&lt;P&gt;And note you cannot stop them from going to repeat 2 but you can stop them from submitting more than 1 repeat.&amp;nbsp; Best I have found.&amp;nbsp; We use this a lot with the Opps too far message and it works.&lt;/P&gt;&lt;P&gt;hope that helps&lt;/P&gt;</description>
      <pubDate>Thu, 08 Feb 2024 00:05:49 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/conditional-constraint-on-a-repeat/m-p/1379465#M54593</guid>
      <dc:creator>DougBrowning</dc:creator>
      <dc:date>2024-02-08T00:05:49Z</dc:date>
    </item>
    <item>
      <title>Re: Conditional constraint on a repeat</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/conditional-constraint-on-a-repeat/m-p/1379622#M54597</link>
      <description>&lt;P&gt;Thanks Doug that worked!&lt;/P&gt;&lt;P&gt;The reason behind is to have a sort of fail safe. We work with a lot of college students or fresh out of college and its to make sure they are not entering data on accident as it could change our end results in a bad way. We typically use paper copies and it has been a headache to read their notes sometimes especially when they go back to school and you cant ask them. Appreciate the help!&lt;/P&gt;</description>
      <pubDate>Thu, 08 Feb 2024 13:19:31 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/conditional-constraint-on-a-repeat/m-p/1379622#M54597</guid>
      <dc:creator>BrennenW</dc:creator>
      <dc:date>2024-02-08T13:19:31Z</dc:date>
    </item>
    <item>
      <title>Re: Conditional constraint on a repeat</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/conditional-constraint-on-a-repeat/m-p/1379659#M54599</link>
      <description>&lt;P&gt;Here is the other option.&amp;nbsp; I swear I have got a constraint on a note to work but I guess not.&amp;nbsp; I usually just leave the count shown and make it read only.&lt;/P&gt;</description>
      <pubDate>Thu, 08 Feb 2024 14:44:51 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/conditional-constraint-on-a-repeat/m-p/1379659#M54599</guid>
      <dc:creator>DougBrowning</dc:creator>
      <dc:date>2024-02-08T14:44:51Z</dc:date>
    </item>
  </channel>
</rss>

