<?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 How to setup a relevant question using &amp;quot;select_one_from_file&amp;quot; choice list? in ArcGIS Survey123 Questions</title>
    <link>https://community.esri.com/t5/arcgis-survey123-questions/how-to-setup-a-relevant-question-using-quot-select/m-p/1224170#M45480</link>
    <description>&lt;P&gt;Hello everyone!&lt;/P&gt;&lt;P&gt;Does anyone have a suggestion on how to&amp;nbsp;setup a relevant question using "select_one_from_file" choice list? I basically have 2 levels of cascading select to filter a list of assets and sub-assets that belong to a particular location( see attachment). Selecting "Location A" , for example, will filter the "Assets type" list to only show the assets that belong to that location.&amp;nbsp; That was easy to set up as relevant question. The problem is that some Assets also have sub-Assets and I need to setup the select_one_from_file question to be visible only when the parent Asset have a sub-asset child. Any recommendation on how to accomplish this?&lt;/P&gt;&lt;P&gt;Thanks,&lt;span class="lia-inline-image-display-wrapper lia-image-align-center" image-alt="relevant.png" style="width: 990px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/54113i081529F748757D87/image-size/large?v=v2&amp;amp;px=999" role="button" title="relevant.png" alt="relevant.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;JB&lt;/P&gt;</description>
    <pubDate>Fri, 21 Oct 2022 07:28:47 GMT</pubDate>
    <dc:creator>JoseBarrios1</dc:creator>
    <dc:date>2022-10-21T07:28:47Z</dc:date>
    <item>
      <title>How to setup a relevant question using "select_one_from_file" choice list?</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/how-to-setup-a-relevant-question-using-quot-select/m-p/1224170#M45480</link>
      <description>&lt;P&gt;Hello everyone!&lt;/P&gt;&lt;P&gt;Does anyone have a suggestion on how to&amp;nbsp;setup a relevant question using "select_one_from_file" choice list? I basically have 2 levels of cascading select to filter a list of assets and sub-assets that belong to a particular location( see attachment). Selecting "Location A" , for example, will filter the "Assets type" list to only show the assets that belong to that location.&amp;nbsp; That was easy to set up as relevant question. The problem is that some Assets also have sub-Assets and I need to setup the select_one_from_file question to be visible only when the parent Asset have a sub-asset child. Any recommendation on how to accomplish this?&lt;/P&gt;&lt;P&gt;Thanks,&lt;span class="lia-inline-image-display-wrapper lia-image-align-center" image-alt="relevant.png" style="width: 990px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/54113i081529F748757D87/image-size/large?v=v2&amp;amp;px=999" role="button" title="relevant.png" alt="relevant.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;JB&lt;/P&gt;</description>
      <pubDate>Fri, 21 Oct 2022 07:28:47 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/how-to-setup-a-relevant-question-using-quot-select/m-p/1224170#M45480</guid>
      <dc:creator>JoseBarrios1</dc:creator>
      <dc:date>2022-10-21T07:28:47Z</dc:date>
    </item>
    <item>
      <title>Re: How to setup a relevant question using "select_one_from_file" choice list?</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/how-to-setup-a-relevant-question-using-quot-select/m-p/1224220#M45484</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I'd use the pulldata function for this - it will return the first matching value from the csv so if you combine it with string-length you can use it to test whether there are any subassets for the selected asset. In your example I would enter the following formula in the relevant column of the subasset field:&lt;/P&gt;&lt;P&gt;string-length(pulldata('SUB-Asset_name','Sub-Asset','Asset',${ASSET_FIELD}))&amp;gt;0&lt;/P&gt;</description>
      <pubDate>Fri, 21 Oct 2022 13:19:32 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/how-to-setup-a-relevant-question-using-quot-select/m-p/1224220#M45484</guid>
      <dc:creator>AndyMcClary</dc:creator>
      <dc:date>2022-10-21T13:19:32Z</dc:date>
    </item>
    <item>
      <title>Re: How to setup a relevant question using "select_one_from_file" choice list?</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/how-to-setup-a-relevant-question-using-quot-select/m-p/1224317#M45494</link>
      <description>&lt;P&gt;Hi AndyMcClary,&lt;/P&gt;&lt;P&gt;This is a great approach! Thank you so much for your input! I'm trying to implement the formula that you suggested but I am not sure what are the fields that I need to add to that formula. I try to enter some values but I keep getting an error of "fields are not available".&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;string-length(pulldata('&lt;STRONG&gt;subAssetDescription_list&lt;/STRONG&gt;','&lt;STRONG&gt;???&lt;/STRONG&gt;','&lt;STRONG&gt;??&lt;/STRONG&gt;',${&lt;STRONG&gt;?????&lt;/STRONG&gt;}))&amp;gt;0&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Here is a snap shot&amp;nbsp; of my actual data workflow.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-center" image-alt="relevant_2.png" style="width: 999px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/54140iCDEE058FAF9E6F9A/image-size/large?v=v2&amp;amp;px=999" role="button" title="relevant_2.png" alt="relevant_2.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 21 Oct 2022 17:03:05 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/how-to-setup-a-relevant-question-using-quot-select/m-p/1224317#M45494</guid>
      <dc:creator>JoseBarrios1</dc:creator>
      <dc:date>2022-10-21T17:03:05Z</dc:date>
    </item>
    <item>
      <title>Re: How to setup a relevant question using "select_one_from_file" choice list?</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/how-to-setup-a-relevant-question-using-quot-select/m-p/1224371#M45498</link>
      <description>&lt;P&gt;Hi Jose,&lt;/P&gt;&lt;P&gt;This should work for you based on those snapshots:&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;string-length(pulldata('&lt;/SPAN&gt;&lt;STRONG&gt;subAssetDescription_list&lt;/STRONG&gt;&lt;SPAN&gt;','name&lt;/SPAN&gt;&lt;SPAN&gt;','subAssetRPI_list&lt;/SPAN&gt;&lt;SPAN&gt;',${assetDescription_list&lt;/SPAN&gt;&lt;SPAN&gt;}))&amp;gt;0&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;More detail on the pulldata function can be found here:&amp;nbsp;&lt;A href="https://community.esri.com/t5/arcgis-survey123-blog/use-existing-data-in-your-survey-the-pulldata/ba-p/896889" target="_blank"&gt;https://community.esri.com/t5/arcgis-survey123-blog/use-existing-data-in-your-survey-the-pulldata/ba-p/896889&lt;/A&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Also, it's not critical but I'd recommend giving your fields and lookup lists different names - makes it a little easier to keep track of what you're referring to in your formulas.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 21 Oct 2022 19:08:25 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/how-to-setup-a-relevant-question-using-quot-select/m-p/1224371#M45498</guid>
      <dc:creator>AndyMcClary</dc:creator>
      <dc:date>2022-10-21T19:08:25Z</dc:date>
    </item>
    <item>
      <title>Re: How to setup a relevant question using "select_one_from_file" choice list?</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/how-to-setup-a-relevant-question-using-quot-select/m-p/1224417#M45500</link>
      <description>&lt;P&gt;Thanks Andy,&lt;/P&gt;&lt;P&gt;The formula works great! Thank you for the help and for the suggestion on the fields names. This is the first time I'm using the "select_one_from_file"&amp;nbsp; with a csv and I though that you have to have the "name" and "label" columns for the choice list to work. Glad to know that it is not the case and I will change it to something more meaningful. Thanks once again for your help!&lt;/P&gt;&lt;P&gt;JB&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Update: After a suggestion,&amp;nbsp; I did try to change the "name" column on the csv to a more meaningful name but it doesn't work without the name and label column.&amp;nbsp;&lt;/STRONG&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 26 Oct 2022 13:42:19 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/how-to-setup-a-relevant-question-using-quot-select/m-p/1224417#M45500</guid>
      <dc:creator>JoseBarrios1</dc:creator>
      <dc:date>2022-10-26T13:42:19Z</dc:date>
    </item>
  </channel>
</rss>

