<?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: Syntax to search substring for selected(question,value) in ArcGIS Survey123 Questions</title>
    <link>https://community.esri.com/t5/arcgis-survey123-questions/syntax-to-search-substring-for-selected-question/m-p/809463#M12928</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Jonathan -&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks for the help!&amp;nbsp;&amp;nbsp;I was hoping to have an entire state's worth of species in the list (~4,000 species), and thought that having each county list would be to large, but&amp;nbsp;I've limited the species list to a limited number of counties within the work area, and the cascading select to get a county species list is a great approach.&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 13 Apr 2018 15:32:04 GMT</pubDate>
    <dc:creator>MilesMcCoy-Sulentic</dc:creator>
    <dc:date>2018-04-13T15:32:04Z</dc:date>
    <item>
      <title>Syntax to search substring for selected(question,value)</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/syntax-to-search-substring-for-selected-question/m-p/809461#M12926</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'm hoping to create a pop-up note when a selected response is not within a list of set responses. I believe it is possible using the selected(question,value) formula in the relevant column and some sort of substring search, but am not sure what the syntax might be.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The survey is for plant species, and I would like to pop up a warning if the user records a plant that is not within it's known range (list of counties). My thought is that I can have the user select the county they are in, and then use that response&amp;nbsp;to search for a match in the range list.&amp;nbsp; I think the structure might be something like: selected(${County}) %in% Range, but I don't know&amp;nbsp;how to go about a substring search in Survey123 syntax.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;TABLE width="499"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD style="font-size: 10.0pt; color: white; text-decoration: none; border-top: .5pt solid #9BBB59; border-right: none; border-bottom: none; border-left: .5pt solid #9BBB59; background: #9BBB59;" width="136"&gt;type&lt;/TD&gt;&lt;TD style="font-size: 10.0pt; color: white; text-decoration: none; border-top: .5pt solid #9BBB59; border-right: none; border-bottom: none; border-left: none; background: #9BBB59;" width="136"&gt;name&lt;/TD&gt;&lt;TD style="font-size: 10.0pt; color: white; text-decoration: none; border-top: .5pt solid #9BBB59; border-right: none; border-bottom: none; border-left: none; background: #9BBB59;" width="227"&gt;label&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="font-size: 10.0pt; color: black; font-weight: 400; text-decoration: none; border-top: .5pt solid #9BBB59; border-right: none; border-bottom: none; border-left: .5pt solid #9BBB59;"&gt;text&lt;/TD&gt;&lt;TD style="font-size: 10.0pt; color: black; font-weight: 400; text-decoration: none; border-top: .5pt solid #9BBB59; border-right: none; border-bottom: none; border-left: none;"&gt;example&lt;/TD&gt;&lt;TD style="font-size: 10.0pt; color: black; font-weight: 400; text-decoration: none; border-top: .5pt solid #9BBB59; border-right: none; border-bottom: none; border-left: none;" width="227"&gt;Example&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="font-size: 10.0pt; color: black; font-weight: 400; text-decoration: none; border-top: .5pt solid #9BBB59; border-right: none; border-bottom: none; border-left: .5pt solid #9BBB59;"&gt;select_one county&lt;/TD&gt;&lt;TD style="font-size: 10.0pt; color: black; font-weight: 400; text-decoration: none; border-top: .5pt solid #9BBB59; border-right: none; border-bottom: none; border-left: none;"&gt;County&lt;/TD&gt;&lt;TD style="font-size: 10.0pt; color: black; font-weight: 400; text-decoration: none; border-top: .5pt solid #9BBB59; border-right: none; border-bottom: none; border-left: none;" width="227"&gt;County&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="font-size: 10.0pt; color: black; font-weight: 400; text-decoration: none; border-top: .5pt solid #9BBB59; border-right: none; border-bottom: none; border-left: .5pt solid #9BBB59;"&gt;begin repeat&lt;/TD&gt;&lt;TD style="font-size: 10.0pt; color: black; font-weight: 400; text-decoration: none; border-top: .5pt solid #9BBB59; border-right: none; border-bottom: none; border-left: none;"&gt;plantList&lt;/TD&gt;&lt;TD style="font-size: 10.0pt; color: black; font-weight: 400; text-decoration: none; border-top: .5pt solid #9BBB59; border-right: none; border-bottom: none; border-left: none;" width="227"&gt;Species&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="font-size: 10.0pt; color: black; font-weight: 400; text-decoration: none; border-top: .5pt solid #9BBB59; border-right: none; border-bottom: none; border-left: .5pt solid #9BBB59;"&gt;select_one species&lt;/TD&gt;&lt;TD style="font-size: 10.0pt; color: black; font-weight: 400; text-decoration: none; border-top: .5pt solid #9BBB59; border-right: none; border-bottom: none; border-left: none;"&gt;species&lt;/TD&gt;&lt;TD style="font-size: 10.0pt; color: black; font-weight: 400; text-decoration: none; border-top: .5pt solid #9BBB59; border-right: none; border-bottom: none; border-left: none;" width="227"&gt;Select Species:&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="font-size: 10.0pt; color: black; font-weight: 400; text-decoration: none; border-top: .5pt solid #9BBB59; border-right: none; border-bottom: none; border-left: .5pt solid #9BBB59;"&gt;note&lt;/TD&gt;&lt;TD style="font-size: 10.0pt; color: black; font-weight: 400; text-decoration: none; border-top: .5pt solid #9BBB59; border-right: none; border-bottom: none; border-left: none;"&gt;&lt;/TD&gt;&lt;TD style="font-size: 10.0pt; color: black; font-weight: 400; text-decoration: none; border-top: .5pt solid #9BBB59; border-right: none; border-bottom: none; border-left: none;" width="227"&gt;outside known county&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="font-size: 10.0pt; color: black; font-weight: 400; text-decoration: none; border-top: .5pt solid #9BBB59; border-right: none; border-bottom: none; border-left: .5pt solid #9BBB59;"&gt;end repeat&lt;/TD&gt;&lt;TD style="font-size: 10.0pt; color: black; font-weight: 400; text-decoration: none; border-top: .5pt solid #9BBB59; border-right: none; border-bottom: none; border-left: none;"&gt;&lt;/TD&gt;&lt;TD style="font-size: 10.0pt; color: black; font-weight: 400; text-decoration: none; border-top: .5pt solid #9BBB59; border-right: none; border-bottom: none; border-left: none;" width="227"&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P style="background-color: #ffffff; border: 0px; font-size: 14px;"&gt;&lt;SPAN style="border: 0px; font-weight: bold; font-size: 14px;"&gt;&lt;STRONG&gt;Survey Tab&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;DIV class="" style="background-color: #ffffff; border: 0px; font-size: 14px;"&gt; &lt;/DIV&gt;&lt;P style="background-color: #ffffff; border: 0px; font-size: 14px;"&gt;&lt;SPAN style="border: 0px; font-weight: bold; font-size: 14px;"&gt;&lt;STRONG&gt;example of species data from choices tab&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;DIV class="" style="background-color: #ffffff; border: 0px; font-size: 14px;"&gt;&lt;TABLE style="border: 0px; font-weight: inherit; font-size: 14px; margin: 0px 0px 2px;" width="513"&gt;&lt;TBODY style="border: inherit solid inherit; font-weight: inherit; font-size: 14px;"&gt;&lt;TR style="border: inherit solid inherit; font-weight: inherit; font-size: 14px;"&gt;&lt;TD style="border: inherit solid inherit; font-size: 14px; padding: 2px 4px;" width="94"&gt;list_name&lt;/TD&gt;&lt;TD style="border: inherit solid inherit; font-size: 14px; padding: 2px 4px;" width="122"&gt;name&lt;/TD&gt;&lt;TD style="border: inherit solid inherit; font-size: 14px; padding: 2px 4px;" width="115"&gt;label&lt;/TD&gt;&lt;TD style="border: inherit solid inherit; font-size: 14px; padding: 2px 4px;" width="182"&gt;Range&lt;/TD&gt;&lt;/TR&gt;&lt;TR style="border: inherit solid inherit; font-weight: inherit; font-size: 14px;"&gt;&lt;TD style="border: inherit solid inherit; font-size: 14px; padding: 2px 4px;"&gt;species&lt;/TD&gt;&lt;TD style="border: inherit solid inherit; font-size: 14px; padding: 2px 4px;"&gt;Pseudelymus_saxicola&lt;/TD&gt;&lt;TD style="border: inherit solid inherit; font-size: 14px; padding: 2px 4px;"&gt;Pseudelymus saxicola&lt;/TD&gt;&lt;TD style="border: inherit solid inherit; font-size: 14px; padding: 2px 4px;"&gt;Beaver, Box Elder, Cache, Carbon, Daggett, Davis, Duchesne, Emery&lt;/TD&gt;&lt;/TR&gt;&lt;TR style="border: inherit solid inherit; font-weight: inherit; font-size: 14px;"&gt;&lt;TD style="border: inherit solid inherit; font-size: 14px; padding: 2px 4px;"&gt;species&lt;/TD&gt;&lt;TD style="border: inherit solid inherit; font-size: 14px; padding: 2px 4px;"&gt;Abies_sp.&lt;/TD&gt;&lt;TD style="border: inherit solid inherit; font-size: 14px; padding: 2px 4px;"&gt;Abies sp.&lt;/TD&gt;&lt;TD style="border: inherit solid inherit; font-size: 14px; padding: 2px 4px;"&gt;Cache&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/DIV&gt;&lt;DIV class="" style="background-color: #ffffff; border: 0px; font-size: 14px;"&gt;&lt;TABLE style="border: 0px; font-weight: inherit; font-size: 14px; margin: 0px 0px 2px;" width="513"&gt;&lt;TBODY style="border: inherit solid inherit; font-weight: inherit; font-size: 14px;"&gt;&lt;TR style="border: inherit solid inherit; font-weight: inherit; font-size: 14px;"&gt;&lt;TD style="border: inherit solid inherit; font-size: 14px; padding: 2px 4px;" width="94"&gt;species&lt;/TD&gt;&lt;TD style="border: inherit solid inherit; font-size: 14px; padding: 2px 4px;" width="122"&gt;Achnatherum_parishii&lt;/TD&gt;&lt;TD style="border: inherit solid inherit; font-size: 14px; padding: 2px 4px;" width="115"&gt;Achnatherum parishii&lt;/TD&gt;&lt;TD style="border: inherit solid inherit; font-size: 14px; padding: 2px 4px;" width="182"&gt;Carbon, Dag&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 11 Apr 2018 22:29:25 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/syntax-to-search-substring-for-selected-question/m-p/809461#M12926</guid>
      <dc:creator>MilesMcCoy-Sulentic</dc:creator>
      <dc:date>2018-04-11T22:29:25Z</dc:date>
    </item>
    <item>
      <title>Re: Syntax to search substring for selected(question,value)</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/syntax-to-search-substring-for-selected-question/m-p/809462#M12927</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Miles&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Have you considered using cascading selects?&lt;/P&gt;&lt;P&gt;This way you could use the county as a choice filter on the species list, and the user would only be able to select a species that exists within the county they selected.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This would work if you were not to use ranges, but instead break them up into counties. You would need to have a record in the choice list for each species in each individual county:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;TABLE style="background-color: #ffffff; border: 0px; font-weight: inherit; font-size: 14px; margin: 0px 0px 2px; width: 590px;"&gt;&lt;TBODY style="border: inherit solid inherit; font-weight: inherit; font-size: 14px;"&gt;&lt;TR style="font-weight: inherit; font-size: 14px; height: 24px;"&gt;&lt;TD style="font-size: 14px; padding: 2px 4px; width: 84px; height: 24px;"&gt;list_name&lt;/TD&gt;&lt;TD style="font-size: 14px; padding: 2px 4px; width: 142px; height: 24px;"&gt;name&lt;/TD&gt;&lt;TD style="font-size: 14px; padding: 2px 4px; width: 198px; height: 24px;"&gt;label&lt;/TD&gt;&lt;TD style="font-size: 14px; padding: 2px 4px; width: 134px; height: 24px;"&gt;County&lt;/TD&gt;&lt;/TR&gt;&lt;TR style="font-weight: inherit; font-size: 14px; height: 48px;"&gt;&lt;TD style="font-size: 14px; padding: 2px 4px; width: 84px; height: 48px;"&gt;&lt;P&gt;species&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: #ffffff;"&gt;species&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD style="font-size: 14px; padding: 2px 4px; width: 142px; height: 48px;"&gt;&lt;P&gt;Pseudelymus_saxicola&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: #ffffff;"&gt;Pseudelymus_saxicola&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD style="font-size: 14px; padding: 2px 4px; width: 198px; height: 48px;"&gt;&lt;P&gt;Pseudelymus saxicola&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: #ffffff;"&gt;Pseudelymus saxicola&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD style="font-size: 14px; padding: 2px 4px; width: 134px; height: 48px;"&gt;&lt;P&gt;Beaver&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: #ffffff;"&gt;Box Elder&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How many species and ranges are we talking about here - is this possible?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;There is a sample for cascading selects in Connect and the help is here:&amp;nbsp;&lt;A class="link-titled" href="http://doc.arcgis.com/en/survey123/desktop/create-surveys/xlsformcascadingselects.htm" title="http://doc.arcgis.com/en/survey123/desktop/create-surveys/xlsformcascadingselects.htm"&gt;Cascading and external selects—Survey123 for ArcGIS | ArcGIS&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;John&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 13 Apr 2018 02:25:54 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/syntax-to-search-substring-for-selected-question/m-p/809462#M12927</guid>
      <dc:creator>JohnathanHasthorpe</dc:creator>
      <dc:date>2018-04-13T02:25:54Z</dc:date>
    </item>
    <item>
      <title>Re: Syntax to search substring for selected(question,value)</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/syntax-to-search-substring-for-selected-question/m-p/809463#M12928</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Jonathan -&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks for the help!&amp;nbsp;&amp;nbsp;I was hoping to have an entire state's worth of species in the list (~4,000 species), and thought that having each county list would be to large, but&amp;nbsp;I've limited the species list to a limited number of counties within the work area, and the cascading select to get a county species list is a great approach.&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 13 Apr 2018 15:32:04 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/syntax-to-search-substring-for-selected-question/m-p/809463#M12928</guid>
      <dc:creator>MilesMcCoy-Sulentic</dc:creator>
      <dc:date>2018-04-13T15:32:04Z</dc:date>
    </item>
    <item>
      <title>Re: Syntax to search substring for selected(question,value)</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/syntax-to-search-substring-for-selected-question/m-p/809464#M12929</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Another approach I've come up with is to avoid the county species lists, and load one list of the entire state species list into the external choices and link it to a question in the choices tab to enable autocomplete search for species. To supply additional relevant info that I want to see but don't need to edit (i.e- which counties it's known from, it's nativity, and state sensitivity) I've put this info into a .csv in the media folder and used a combination of calculate question and pulldata, and note questions to pop up a species nativity, sensitivity, and known locations after selecting it. It is nice to have the entire list as there are some species that are known to occur in the state, but do not have any county records listed in the USDA plants list (yet).&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 20 Apr 2018 16:30:16 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/syntax-to-search-substring-for-selected-question/m-p/809464#M12929</guid>
      <dc:creator>MilesMcCoy-Sulentic</dc:creator>
      <dc:date>2018-04-20T16:30:16Z</dc:date>
    </item>
  </channel>
</rss>

