<?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: Require one answer within a nested repeat group in ArcGIS Survey123 Questions</title>
    <link>https://community.esri.com/t5/arcgis-survey123-questions/require-one-answer-within-a-nested-repeat-group/m-p/865074#M26810</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks. I moved the&amp;nbsp;&lt;SPAN style="background-color: #ffffff;"&gt;constraint of&amp;nbsp;${city_count}&amp;gt;=1 to the&amp;nbsp;city_count_desc field. That's an improvement. It kind of works, but not completely.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: #ffffff;"&gt;Success:&lt;/SPAN&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;&lt;SPAN style="background-color: #ffffff;"&gt;With one person, continent answer exists, and no city. During submission constraint message &lt;SPAN&gt;(saying at least one city is required)&amp;nbsp;&lt;/SPAN&gt;is displayed in an alert. Note: it won't auto-scroll to the city field (if the city field isn't visible).&lt;/SPAN&gt;&lt;/LI&gt;&lt;LI&gt;&lt;SPAN&gt;With one person&amp;nbsp;(continent answer &lt;SPAN style="background-color: #ffffff;"&gt;exists&amp;nbsp;&lt;/SPAN&gt;and city selected), I add a second person and only answer the continent question.&amp;nbsp;&lt;SPAN style="background-color: #ffffff;"&gt;During submission c&lt;/SPAN&gt;&lt;SPAN style="background-color: #ffffff;"&gt;onstraint message (saying at least one city is required) is displayed in an alert.&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;SPAN style="background-color: #ffffff;"&gt;Failure:&lt;/SPAN&gt;&lt;/P&gt;&lt;UL style="padding: 0px 0px 0px 30px;"&gt;&lt;LI style="margin: 0.2em 0px;"&gt;&lt;SPAN style="background-color: #ffffff;"&gt;When I add a second person, the continent answer is required (for the first person), but at least one city is not required &lt;SPAN&gt;(for the first person)&lt;/SPAN&gt;.&lt;/SPAN&gt;&lt;/LI&gt;&lt;LI style="margin: 0.2em 0px;"&gt;&lt;SPAN style="background-color: #ffffff;"&gt;&lt;SPAN&gt;With one person&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;(&lt;/SPAN&gt;&lt;SPAN&gt;continent answer exists and&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN&gt;city selected), I add a second person and only answer the continent question. Then, I scroll back to view the first person. Submission is successful, but the second person doesn't have a city.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: #ffffff;"&gt;Does anyone see a solution for these cases?&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 09 Apr 2020 19:00:40 GMT</pubDate>
    <dc:creator>Soper_Chuck</dc:creator>
    <dc:date>2020-04-09T19:00:40Z</dc:date>
    <item>
      <title>Require one answer within a nested repeat group</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/require-one-answer-within-a-nested-repeat-group/m-p/865072#M26808</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I recently&amp;nbsp;asked this question and&amp;nbsp;&lt;A href="https://community.esri.com/migrated-users/12477"&gt;Doug Browning&lt;/A&gt;&amp;nbsp;answered pretty quickly. Thanks for that.&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.esri.com/thread/251191"&gt;Require one answer within group&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I actually need to use this repeat group within another repeat group. I've attached a modified XLSForm to show that usage. My survey requires this case. When I add another person, the continent question is required (that's good) but, the city (1 required, up to 5) is not required. When I have one person and submit the survey, the city is required, but the constraint message is in an alert and the content is not auto-scrolled to the correct location. Worse, if I have two people and will a total of one city (one city per person should be required) then the survey is accepted.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Does anyone know how to require one city per person? Also, I prefer that the constraint is inline and not in an alert. And that the city is required when adding a new person (like the continent question).&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 09 Apr 2020 15:33:10 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/require-one-answer-within-a-nested-repeat-group/m-p/865072#M26808</guid>
      <dc:creator>Soper_Chuck</dc:creator>
      <dc:date>2020-04-09T15:33:10Z</dc:date>
    </item>
    <item>
      <title>Re: Require one answer within a nested repeat group</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/require-one-answer-within-a-nested-repeat-group/m-p/865073#M26809</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;That is tough due to the dependency cycle.&amp;nbsp;&amp;nbsp;Seems like a constraint of&amp;nbsp;${city_count}&amp;gt;=1 on the&amp;nbsp;city_count_desc field seems to work.&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 09 Apr 2020 16:29:38 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/require-one-answer-within-a-nested-repeat-group/m-p/865073#M26809</guid>
      <dc:creator>DougBrowning</dc:creator>
      <dc:date>2020-04-09T16:29:38Z</dc:date>
    </item>
    <item>
      <title>Re: Require one answer within a nested repeat group</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/require-one-answer-within-a-nested-repeat-group/m-p/865074#M26810</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks. I moved the&amp;nbsp;&lt;SPAN style="background-color: #ffffff;"&gt;constraint of&amp;nbsp;${city_count}&amp;gt;=1 to the&amp;nbsp;city_count_desc field. That's an improvement. It kind of works, but not completely.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: #ffffff;"&gt;Success:&lt;/SPAN&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;&lt;SPAN style="background-color: #ffffff;"&gt;With one person, continent answer exists, and no city. During submission constraint message &lt;SPAN&gt;(saying at least one city is required)&amp;nbsp;&lt;/SPAN&gt;is displayed in an alert. Note: it won't auto-scroll to the city field (if the city field isn't visible).&lt;/SPAN&gt;&lt;/LI&gt;&lt;LI&gt;&lt;SPAN&gt;With one person&amp;nbsp;(continent answer &lt;SPAN style="background-color: #ffffff;"&gt;exists&amp;nbsp;&lt;/SPAN&gt;and city selected), I add a second person and only answer the continent question.&amp;nbsp;&lt;SPAN style="background-color: #ffffff;"&gt;During submission c&lt;/SPAN&gt;&lt;SPAN style="background-color: #ffffff;"&gt;onstraint message (saying at least one city is required) is displayed in an alert.&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;SPAN style="background-color: #ffffff;"&gt;Failure:&lt;/SPAN&gt;&lt;/P&gt;&lt;UL style="padding: 0px 0px 0px 30px;"&gt;&lt;LI style="margin: 0.2em 0px;"&gt;&lt;SPAN style="background-color: #ffffff;"&gt;When I add a second person, the continent answer is required (for the first person), but at least one city is not required &lt;SPAN&gt;(for the first person)&lt;/SPAN&gt;.&lt;/SPAN&gt;&lt;/LI&gt;&lt;LI style="margin: 0.2em 0px;"&gt;&lt;SPAN style="background-color: #ffffff;"&gt;&lt;SPAN&gt;With one person&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;(&lt;/SPAN&gt;&lt;SPAN&gt;continent answer exists and&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN&gt;city selected), I add a second person and only answer the continent question. Then, I scroll back to view the first person. Submission is successful, but the second person doesn't have a city.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: #ffffff;"&gt;Does anyone see a solution for these cases?&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 09 Apr 2020 19:00:40 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/require-one-answer-within-a-nested-repeat-group/m-p/865074#M26810</guid>
      <dc:creator>Soper_Chuck</dc:creator>
      <dc:date>2020-04-09T19:00:40Z</dc:date>
    </item>
    <item>
      <title>Re: Require one answer within a nested repeat group</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/require-one-answer-within-a-nested-repeat-group/m-p/865075#M26811</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes it gets confused with the repeat in a repeat.&amp;nbsp; It is counting all responses which makes sense.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can you just have 5 city fields instead?&amp;nbsp; The backend table will be less pretty of course&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You could also remove the repeat count of 5.&amp;nbsp; Then make City required.&amp;nbsp; They could then do more than 5 but not less than 1.&amp;nbsp; You could give a warning past 5 though.&amp;nbsp; Or even hide the fields of the count &amp;gt; 5 and have a message appear that says max of 5.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;None are perfect but its a shot.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 09 Apr 2020 19:30:40 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/require-one-answer-within-a-nested-repeat-group/m-p/865075#M26811</guid>
      <dc:creator>DougBrowning</dc:creator>
      <dc:date>2020-04-09T19:30:40Z</dc:date>
    </item>
    <item>
      <title>Re: Require one answer within a nested repeat group</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/require-one-answer-within-a-nested-repeat-group/m-p/865076#M26812</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes! I believe that having five city fields would solve the issues I discovered. I could display each additional city field as they're entered. That is, after the first city is entered, display the question for the second city, and so on.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My question about entering 1 to 5 cities within a repeating group&amp;nbsp;is relatively straightforward. In my actual survey, I have a select_multiple &lt;UL&gt; with 13&amp;nbsp;choices. Four of the thirteen choices, if checked require the at least 1 and up to 5 "cities" question. Those city questions have to be displayed below the 13 choice list question. Each city question takes a lot of screen space. I could consider asking the user how many "cities" they need to enter so that I can&amp;nbsp;immediately&amp;nbsp;display correct number of city questions. The entire approach (of asking for 1 to 5 cities) would have to be done four times, for each of the 4 (out of 13) choices selected.&lt;/UL&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This isn't a good user experience. I would also like a way to quickly review all answers before submitting the survey and that isn't easy (if it's possible).&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 09 Apr 2020 20:45:58 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/require-one-answer-within-a-nested-repeat-group/m-p/865076#M26812</guid>
      <dc:creator>Soper_Chuck</dc:creator>
      <dc:date>2020-04-09T20:45:58Z</dc:date>
    </item>
    <item>
      <title>Re: Require one answer within a nested repeat group</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/require-one-answer-within-a-nested-repeat-group/m-p/865077#M26813</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I made an edit with 2 more ideas.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 10 Apr 2020 15:30:30 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/require-one-answer-within-a-nested-repeat-group/m-p/865077#M26813</guid>
      <dc:creator>DougBrowning</dc:creator>
      <dc:date>2020-04-10T15:30:30Z</dc:date>
    </item>
  </channel>
</rss>

