<?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>idea Rule to restrict values to a subset of domain values in Survey123 in ArcGIS Survey123 Ideas</title>
    <link>https://community.esri.com/t5/arcgis-survey123-ideas/rule-to-restrict-values-to-a-subset-of-domain/idi-p/927028</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Instead of being required to make multiple fields to support different sets of values constraints in a dropdown, it would be nice to be able to just have all of those values populate into a single field and just constrain the eligible values. Essentially, I'm asking for subtype support.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Case in point:&lt;/P&gt;&lt;P&gt;Let's say I want to ask for the user for the address of a location and I want those values parsed. That's easy, let's set up a couple of questions to gather that information.&lt;/P&gt;&lt;P&gt;&lt;IMG alt="basic address capture form" class="image-1 jive-image" height="412" src="/legacyfs/online/482329_Screen Shot 2020-02-15 at 8.45.12 PM.png" width="413" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Okay, but my locations could be in any country. To keep things simple, let's just say it could be in North America. Pretty straightforward, lets just add a Country question.&lt;/P&gt;&lt;P&gt;&lt;IMG alt="basic address capture form with country field" class="jive-emoji image-2 jive-image" height="530" src="/legacyfs/online/482366_Screen Shot 2020-02-15 at 9.03.08 PM.png" width="468" /&gt;&lt;/P&gt;&lt;P&gt;Oh! but my State question is a dropdown because I want the user to select a valid state and I'd like to avoid misspellings. Or perhaps I want to give them full state names but only keep the abbreviations in the table. Whatever my reason, it's a dropdown. Hmm...states from three different countries. That's going to be a long dropdown! We could use Autocomplete here to negate those length effects, but there's nothing stopping them from selecting the wrong value now is there? And with more choices, those odds also increase.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Okay. Let's address this. Survey123 Rules to the rescue! Let's set up a State dropdown for each country, containing only the state values for its respective country, then we'll set up a Rule on the Country dropdown to show the appropriate State dropdown based on the Country selection! Problem solved!&lt;/P&gt;&lt;P&gt;&lt;IMG alt="basic address capture form with country field and a state field for each country" class="image-3 jive-emoji jive-image" height="837" src="/legacyfs/online/482367_Screen Shot 2020-02-15 at 9.06.20 PM.png" width="491" /&gt;&lt;/P&gt;&lt;P&gt;Or is it? When you go to publish and modify the schema, you find that each of these individual State dropdowns now has its own respective field, with its own respective domain. Totally makes sense and that works for most use cases. But not this one. No one would want their state values spread across three different fields just because the state is located in a different country.&lt;/P&gt;&lt;P&gt;&lt;IMG alt="survey123 modify schema dialog with country states and domains spread across three fields" class="jive-emoji jive-image image-4 j-img-original" src="/legacyfs/online/482368_Screen Shot 2020-02-15 at 9.10.07 PM.png" /&gt;&lt;/P&gt;&lt;P&gt;Doing that means that you've got a to implement a lot more logic whenever you're trying to feed an address into another system or perform a URL call. You're never sure which field to grab the state value from unless you implement additional logic in your app to identify the country.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;TLDR; Give me a rule that lets me have a single or multi-choice&amp;nbsp;to which a rule can be attached, which allows me to constrain which values from&amp;nbsp;another&amp;nbsp;single or multichoice list that will appear in that item, based on the selected value in the question on which the rule was applied.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Something like:&lt;/P&gt;&lt;P&gt;If COUNTRY == 'United States' then in STATE only show values ['AL', 'AK', 'AR', ...]&lt;/P&gt;&lt;P&gt;If COUNTRY == 'Canada' then in STATE only show values ['AB', 'BC', 'MB', ...]&lt;/P&gt;&lt;P&gt;If COUNTRY == 'Mexico' then in STATE only show values ['AG', 'BC', 'BS', ...]&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;One State Field. Many possible values but which value(s) are eligible for selection depends on the country you selected.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sun, 16 Feb 2020 02:13:46 GMT</pubDate>
    <dc:creator>JohnMDye</dc:creator>
    <dc:date>2020-02-16T02:13:46Z</dc:date>
    <item>
      <title>Rule to restrict values to a subset of domain values in Survey123</title>
      <link>https://community.esri.com/t5/arcgis-survey123-ideas/rule-to-restrict-values-to-a-subset-of-domain/idi-p/927028</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Instead of being required to make multiple fields to support different sets of values constraints in a dropdown, it would be nice to be able to just have all of those values populate into a single field and just constrain the eligible values. Essentially, I'm asking for subtype support.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Case in point:&lt;/P&gt;&lt;P&gt;Let's say I want to ask for the user for the address of a location and I want those values parsed. That's easy, let's set up a couple of questions to gather that information.&lt;/P&gt;&lt;P&gt;&lt;IMG alt="basic address capture form" class="image-1 jive-image" height="412" src="/legacyfs/online/482329_Screen Shot 2020-02-15 at 8.45.12 PM.png" width="413" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Okay, but my locations could be in any country. To keep things simple, let's just say it could be in North America. Pretty straightforward, lets just add a Country question.&lt;/P&gt;&lt;P&gt;&lt;IMG alt="basic address capture form with country field" class="jive-emoji image-2 jive-image" height="530" src="/legacyfs/online/482366_Screen Shot 2020-02-15 at 9.03.08 PM.png" width="468" /&gt;&lt;/P&gt;&lt;P&gt;Oh! but my State question is a dropdown because I want the user to select a valid state and I'd like to avoid misspellings. Or perhaps I want to give them full state names but only keep the abbreviations in the table. Whatever my reason, it's a dropdown. Hmm...states from three different countries. That's going to be a long dropdown! We could use Autocomplete here to negate those length effects, but there's nothing stopping them from selecting the wrong value now is there? And with more choices, those odds also increase.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Okay. Let's address this. Survey123 Rules to the rescue! Let's set up a State dropdown for each country, containing only the state values for its respective country, then we'll set up a Rule on the Country dropdown to show the appropriate State dropdown based on the Country selection! Problem solved!&lt;/P&gt;&lt;P&gt;&lt;IMG alt="basic address capture form with country field and a state field for each country" class="image-3 jive-emoji jive-image" height="837" src="/legacyfs/online/482367_Screen Shot 2020-02-15 at 9.06.20 PM.png" width="491" /&gt;&lt;/P&gt;&lt;P&gt;Or is it? When you go to publish and modify the schema, you find that each of these individual State dropdowns now has its own respective field, with its own respective domain. Totally makes sense and that works for most use cases. But not this one. No one would want their state values spread across three different fields just because the state is located in a different country.&lt;/P&gt;&lt;P&gt;&lt;IMG alt="survey123 modify schema dialog with country states and domains spread across three fields" class="jive-emoji jive-image image-4 j-img-original" src="/legacyfs/online/482368_Screen Shot 2020-02-15 at 9.10.07 PM.png" /&gt;&lt;/P&gt;&lt;P&gt;Doing that means that you've got a to implement a lot more logic whenever you're trying to feed an address into another system or perform a URL call. You're never sure which field to grab the state value from unless you implement additional logic in your app to identify the country.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;TLDR; Give me a rule that lets me have a single or multi-choice&amp;nbsp;to which a rule can be attached, which allows me to constrain which values from&amp;nbsp;another&amp;nbsp;single or multichoice list that will appear in that item, based on the selected value in the question on which the rule was applied.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Something like:&lt;/P&gt;&lt;P&gt;If COUNTRY == 'United States' then in STATE only show values ['AL', 'AK', 'AR', ...]&lt;/P&gt;&lt;P&gt;If COUNTRY == 'Canada' then in STATE only show values ['AB', 'BC', 'MB', ...]&lt;/P&gt;&lt;P&gt;If COUNTRY == 'Mexico' then in STATE only show values ['AG', 'BC', 'BS', ...]&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;One State Field. Many possible values but which value(s) are eligible for selection depends on the country you selected.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 16 Feb 2020 02:13:46 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-ideas/rule-to-restrict-values-to-a-subset-of-domain/idi-p/927028</guid>
      <dc:creator>JohnMDye</dc:creator>
      <dc:date>2020-02-16T02:13:46Z</dc:date>
    </item>
    <item>
      <title>Re: Rule to restrict values to a subset of domain values in Survey123</title>
      <link>https://community.esri.com/t5/arcgis-survey123-ideas/rule-to-restrict-values-to-a-subset-of-domain/idc-p/927029#M162</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;So I came across &lt;A href="https://pro.arcgis.com/en/pro-app/help/data/geodatabases/overview/contingent-values.htm"&gt;Contingent Values&lt;/A&gt; yesterday while researching this further. Not sure if they are supported in Survey123.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 18 Feb 2020 14:17:29 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-ideas/rule-to-restrict-values-to-a-subset-of-domain/idc-p/927029#M162</guid>
      <dc:creator>JohnMDye</dc:creator>
      <dc:date>2020-02-18T14:17:29Z</dc:date>
    </item>
    <item>
      <title>Re: Rule to restrict values to a subset of domain values in Survey123</title>
      <link>https://community.esri.com/t5/arcgis-survey123-ideas/rule-to-restrict-values-to-a-subset-of-domain/idc-p/1353731#M2723</link>
      <description>&lt;P&gt;&lt;A href="https://community.esri.com/t5/arcgis-survey123-questions/filter-second-question-depending-on-answer-to-the/td-p/1089440" target="_blank"&gt;https://community.esri.com/t5/arcgis-survey123-questions/filter-second-question-depending-on-answer-to-the/td-p/1089440&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 27 Nov 2023 20:06:33 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-ideas/rule-to-restrict-values-to-a-subset-of-domain/idc-p/1353731#M2723</guid>
      <dc:creator>AshneyDaniel</dc:creator>
      <dc:date>2023-11-27T20:06:33Z</dc:date>
    </item>
  </channel>
</rss>

