<?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: restrict list choices in a repeat's &amp;quot;select one&amp;quot; question based on choice selected in a previous repeat in ArcGIS Survey123 Questions</title>
    <link>https://community.esri.com/t5/arcgis-survey123-questions/restrict-list-choices-in-a-repeat-s-quot-select/m-p/1139939#M40219</link>
    <description>&lt;P&gt;Excellent, thank you!&amp;nbsp; I'm curious to see what you think of it:&lt;/P&gt;</description>
    <pubDate>Wed, 02 Feb 2022 17:14:40 GMT</pubDate>
    <dc:creator>Galen_S_MnDOT</dc:creator>
    <dc:date>2022-02-02T17:14:40Z</dc:date>
    <item>
      <title>restrict list choices in a repeat's "select one" question based on choice selected in a previous repeat</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/restrict-list-choices-in-a-repeat-s-quot-select/m-p/1137155#M39991</link>
      <description>&lt;P&gt;Hello-&lt;/P&gt;&lt;P&gt;I have a sign inspection form that incorporates cascading selects across three nested repeats.&amp;nbsp; &amp;nbsp;Depending on the type of inspection selected (which corresponds to the type of structure), the user is provided a filtered list of structural elements.&amp;nbsp; Depending on the element they then select, they're provided a filtered list of relevant element defects to assess.&lt;/P&gt;&lt;P&gt;Although the cascading selects work just fine, and the form also locks the number of repeated element and defect records depending on the previous selection, I haven't yet figured out a way to prevent users from accidentally selecting either the same element or same defect twice.&amp;nbsp;&lt;/P&gt;&lt;P&gt;I do have an "assessed defects" checklist question (read-only "select_multiple" question, uses the join() function) visible for each element:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Galen_S_MnDOT_0-1643149076702.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/32298i1115298F9EDF82D8/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Galen_S_MnDOT_0-1643149076702.png" alt="Galen_S_MnDOT_0-1643149076702.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;... and a similar "assessed elements" checklist for the entire inspection itself, but this method still requires user oversight, and if an element or defect&amp;nbsp;&lt;EM&gt;is&amp;nbsp;&lt;/EM&gt;repeated, I don't know how to indicate to the user specifically&amp;nbsp;&lt;EM&gt;which&lt;/EM&gt; choice was erroneously selected twice.&lt;/P&gt;&lt;P&gt;Is there a way to remove options from the initial "select one" questions for subsequent repeated records based on what's already been selected?&amp;nbsp; That ability would eliminate this possibility for user error and ensure that each element and their corresponding defects are assessed only once.&lt;/P&gt;&lt;P&gt;Thank you for any assistance!&lt;/P&gt;&lt;P&gt;Galen S.&lt;/P&gt;&lt;P&gt;Minnesota Dept. of Transportation&lt;/P&gt;</description>
      <pubDate>Tue, 25 Jan 2022 22:23:57 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/restrict-list-choices-in-a-repeat-s-quot-select/m-p/1137155#M39991</guid>
      <dc:creator>Galen_S_MnDOT</dc:creator>
      <dc:date>2022-01-25T22:23:57Z</dc:date>
    </item>
    <item>
      <title>Re: restrict list choices in a repeat's "select one" question based on choice selected in a previous repeat</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/restrict-list-choices-in-a-repeat-s-quot-select/m-p/1137191#M39993</link>
      <description>&lt;P&gt;This has been posted a few times and as far as I know my hack to yell at them if they do dup is the only method so far.&amp;nbsp; Except there are some javascript ways also but that is not an option for me.&lt;/P&gt;&lt;P&gt;See here&amp;nbsp;&amp;nbsp;&lt;A href="https://community.esri.com/t5/arcgis-survey123-questions/how-to-not-use-a-list-item-more-than-once/td-p/847735" target="_blank"&gt;https://community.esri.com/t5/arcgis-survey123-questions/how-to-not-use-a-list-item-more-than-once/td-p/847735&lt;/A&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 25 Jan 2022 23:46:30 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/restrict-list-choices-in-a-repeat-s-quot-select/m-p/1137191#M39993</guid>
      <dc:creator>DougBrowning</dc:creator>
      <dc:date>2022-01-25T23:46:30Z</dc:date>
    </item>
    <item>
      <title>Re: restrict list choices in a repeat's "select one" question based on choice selected in a previous repeat</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/restrict-list-choices-in-a-repeat-s-quot-select/m-p/1138926#M40131</link>
      <description>&lt;P&gt;Understood - thank you Doug!&amp;nbsp;&lt;/P&gt;&lt;P&gt;JS not an option for me either, unfortunately.&amp;nbsp; I looked at the technique described in your linked post, and I don't think that'll be an option either since there's a high likelihood of backwards and forwards progress through the repeated records in our form.&lt;/P&gt;</description>
      <pubDate>Mon, 31 Jan 2022 15:20:04 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/restrict-list-choices-in-a-repeat-s-quot-select/m-p/1138926#M40131</guid>
      <dc:creator>Galen_S_MnDOT</dc:creator>
      <dc:date>2022-01-31T15:20:04Z</dc:date>
    </item>
    <item>
      <title>Re: restrict list choices in a repeat's "select one" question based on choice selected in a previous repeat</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/restrict-list-choices-in-a-repeat-s-quot-select/m-p/1139846#M40211</link>
      <description>&lt;P&gt;That should not matter we can add in any order of the 6,000 in our list and it works fine.&lt;/P&gt;</description>
      <pubDate>Wed, 02 Feb 2022 15:10:50 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/restrict-list-choices-in-a-repeat-s-quot-select/m-p/1139846#M40211</guid>
      <dc:creator>DougBrowning</dc:creator>
      <dc:date>2022-02-02T15:10:50Z</dc:date>
    </item>
    <item>
      <title>Re: restrict list choices in a repeat's "select one" question based on choice selected in a previous repeat</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/restrict-list-choices-in-a-repeat-s-quot-select/m-p/1139915#M40217</link>
      <description>&lt;P&gt;Ah, I must have&amp;nbsp; misunderstood that other post then.&amp;nbsp; I thought I read that the method breaks if user clicks back through any already entered repeated records.&amp;nbsp;&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;However, I'm testing another possible method at the moment that looks promising; I'm using each choice/type's expected position (index) in the repeat list inside the choice_filter expression so that for every repeat, only one unique choice is available.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;I'm not sure if this would be workable for a choice list as long as yours, since I had manually assign the desired repeat index values to every individual choice for our first and second level repeats:&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-left" image-alt="Screenshot 2022-02-02 103050.jpg" style="width: 999px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/32949i23C388E9FEDEE57B/image-size/large?v=v2&amp;amp;px=999" role="button" title="Screenshot 2022-02-02 103050.jpg" alt="Screenshot 2022-02-02 103050.jpg" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;... but that wasn't particularly burdensome, since our longest choice list is only 193 items.&lt;/P&gt;&lt;P&gt;But it seems to work!&amp;nbsp; The one potential obstacle we've identified so far is that the position(..) function that actually populates the stored index values for each repeat seemed to be a little unpredictable during some previous testing, but I think I may have solved that by having the two nested repeats appear at specific times using Relevant expressions.&lt;/P&gt;</description>
      <pubDate>Wed, 02 Feb 2022 16:36:27 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/restrict-list-choices-in-a-repeat-s-quot-select/m-p/1139915#M40217</guid>
      <dc:creator>Galen_S_MnDOT</dc:creator>
      <dc:date>2022-02-02T16:36:27Z</dc:date>
    </item>
    <item>
      <title>Re: restrict list choices in a repeat's "select one" question based on choice selected in a previous repeat</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/restrict-list-choices-in-a-repeat-s-quot-select/m-p/1139922#M40218</link>
      <description>&lt;P&gt;I think the order of the selections is the order they clicked on the boxes and not the order of the list.&amp;nbsp; So if they select the last item first it gets a 1.&amp;nbsp; So they could have the exact same selections but the selected at would all be different.&lt;/P&gt;&lt;P&gt;If you post your form I may be able to help more.&lt;/P&gt;</description>
      <pubDate>Wed, 02 Feb 2022 16:44:19 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/restrict-list-choices-in-a-repeat-s-quot-select/m-p/1139922#M40218</guid>
      <dc:creator>DougBrowning</dc:creator>
      <dc:date>2022-02-02T16:44:19Z</dc:date>
    </item>
    <item>
      <title>Re: restrict list choices in a repeat's "select one" question based on choice selected in a previous repeat</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/restrict-list-choices-in-a-repeat-s-quot-select/m-p/1139939#M40219</link>
      <description>&lt;P&gt;Excellent, thank you!&amp;nbsp; I'm curious to see what you think of it:&lt;/P&gt;</description>
      <pubDate>Wed, 02 Feb 2022 17:14:40 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/restrict-list-choices-in-a-repeat-s-quot-select/m-p/1139939#M40219</guid>
      <dc:creator>Galen_S_MnDOT</dc:creator>
      <dc:date>2022-02-02T17:14:40Z</dc:date>
    </item>
    <item>
      <title>Re: restrict list choices in a repeat's "select one" question based on choice selected in a previous repeat</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/restrict-list-choices-in-a-repeat-s-quot-select/m-p/1139968#M40230</link>
      <description>&lt;P&gt;Sorry this thing is way too big and complicated for even even to tell what you want.&amp;nbsp; I am not even sure how to create a dup.&amp;nbsp; Also your list values are all numbers which makes it harder.&lt;/P&gt;&lt;P&gt;Then there are so many nested repeats it is hard to tell where the check should be.&amp;nbsp; You need to use join outside the repeat.&amp;nbsp; Then if there is a nested you may have to use join twice to get them all.&lt;/P&gt;&lt;P&gt;I added the code I use hopefully you can adjust it to be in the correct spot.&amp;nbsp; Line 192.&amp;nbsp; You may want to break out a section for testing vs this big one.&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Sorry I was not more help.&amp;nbsp; This code works for me so hopefully it will help.&lt;/P&gt;</description>
      <pubDate>Wed, 02 Feb 2022 17:57:00 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/restrict-list-choices-in-a-repeat-s-quot-select/m-p/1139968#M40230</guid>
      <dc:creator>DougBrowning</dc:creator>
      <dc:date>2022-02-02T17:57:00Z</dc:date>
    </item>
    <item>
      <title>Re: restrict list choices in a repeat's "select one" question based on choice selected in a previous repeat</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/restrict-list-choices-in-a-repeat-s-quot-select/m-p/1140030#M40239</link>
      <description>&lt;P&gt;Heheh, totally understand Doug.&amp;nbsp; Making any sense of it definitely requires a fairly nuanced understanding of overhead sign design parameters and inspection requirements.&amp;nbsp; Thanks for even being willing to take a look!&lt;/P&gt;</description>
      <pubDate>Wed, 02 Feb 2022 19:21:43 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/restrict-list-choices-in-a-repeat-s-quot-select/m-p/1140030#M40239</guid>
      <dc:creator>Galen_S_MnDOT</dc:creator>
      <dc:date>2022-02-02T19:21:43Z</dc:date>
    </item>
    <item>
      <title>Re: restrict list choices in a repeat's "select one" question based on choice selected in a previous repeat</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/restrict-list-choices-in-a-repeat-s-quot-select/m-p/1145805#M40656</link>
      <description>&lt;P&gt;Coming back to this since I wonder if you were using the new 3.14?&amp;nbsp; The new calc engine broke my trick but then I found a fix for it.&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Here is a simple form I made to show how it works.&amp;nbsp; Prevents you from adding dup species.&amp;nbsp; Had to add the once() around the join for the new engine.&lt;/P&gt;&lt;P&gt;Hopefully you can follow this example and get it to go.&lt;/P&gt;</description>
      <pubDate>Fri, 18 Feb 2022 21:37:04 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/restrict-list-choices-in-a-repeat-s-quot-select/m-p/1145805#M40656</guid>
      <dc:creator>DougBrowning</dc:creator>
      <dc:date>2022-02-18T21:37:04Z</dc:date>
    </item>
    <item>
      <title>Re: restrict list choices in a repeat's "select one" question based on choice selected in a previous repeat</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/restrict-list-choices-in-a-repeat-s-quot-select/m-p/1145809#M40657</link>
      <description>&lt;P&gt;Thank you for the example!&amp;nbsp; I ended up taking a slightly different strategy.&amp;nbsp; Instead of trying to detect and prevent duplicates, I used a choice filter expression that incorporates the index values (i.e. "Position") of our repeated records, and only allows one at a time to be chosen, and in the proper order.&amp;nbsp; Ultimately it still enforces that rule that each potential structural element is only assessed once, and each defect relevant to each element is likewise only assessed once.&lt;/P&gt;&lt;P&gt;This version of our form is still in development, but initial testing seems to indicate that our method works consistently.&amp;nbsp; Of course we still run into problems sometimes when beginning new inspections entirely or trying to resume an existing but incomplete inspection from a draft (or crash-recovered entry), but most all of those problems seem tied to known bugs with the "repeat_count" parameter and not this specific use of choice filters.&lt;/P&gt;&lt;P&gt;Looking forward to digging into your example more as soon as I'm able!&lt;/P&gt;</description>
      <pubDate>Fri, 18 Feb 2022 21:44:40 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/restrict-list-choices-in-a-repeat-s-quot-select/m-p/1145809#M40657</guid>
      <dc:creator>Galen_S_MnDOT</dc:creator>
      <dc:date>2022-02-18T21:44:40Z</dc:date>
    </item>
    <item>
      <title>Re: restrict list choices in a repeat's "select one" question based on choice selected in a previous repeat</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/restrict-list-choices-in-a-repeat-s-quot-select/m-p/1145887#M40658</link>
      <description>&lt;P&gt;If you have not tried the 3.14 beta yet I would.&amp;nbsp; There are major changes to repeat count that fixed and also broke some stuff in ours.&amp;nbsp; Draft and repeat count still has issues for sure.&lt;/P&gt;&lt;P&gt;I have found that in some cases repeat count just wont do it.&amp;nbsp; So instead I use position or count in a constraint.&amp;nbsp; This way it grows the repeat up to a point vs loading the whole thing at once.&amp;nbsp; It can get you around a lot of issues.&lt;/P&gt;&lt;P&gt;Good luck&lt;/P&gt;</description>
      <pubDate>Fri, 18 Feb 2022 22:49:54 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/restrict-list-choices-in-a-repeat-s-quot-select/m-p/1145887#M40658</guid>
      <dc:creator>DougBrowning</dc:creator>
      <dc:date>2022-02-18T22:49:54Z</dc:date>
    </item>
  </channel>
</rss>

