<?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: Passing URL Parameters into a Search Appearance in ArcGIS Survey123 Questions</title>
    <link>https://community.esri.com/t5/arcgis-survey123-questions/passing-url-parameters-into-a-search-appearance/m-p/1507362#M57996</link>
    <description>&lt;P&gt;Update: I was able to find a solution - not perfect it works.&lt;/P&gt;&lt;P&gt;The issue seems to be that the search appearance expression only evaluates if there is a calculated expression that feeds into it. This will rerun the filter on the search.&amp;nbsp; For example, a prior question can be used to rerun the filter. Replace 'matches' with&amp;nbsp;concat(substr(${some_prior_question},1,1),"matches").&amp;nbsp; This will still always output 'matches'.&amp;nbsp; Replace:&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;compact search('Lotcode?url=&lt;/SPAN&gt;&lt;FONT color="#FF0000"&gt;{featureServiceUrl}&lt;/FONT&gt;&lt;SPAN&gt;',&lt;FONT color="#0000FF"&gt;'matches'&lt;/FONT&gt;,'SiteID',${siteid})&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;with&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;compact search('Lotcode?url=&lt;/SPAN&gt;&lt;FONT color="#FF0000"&gt;{featureServiceUrl}&lt;/FONT&gt;&lt;SPAN&gt;',&lt;FONT color="#0000FF"&gt;concat(substr(${some_prior_question},1,1),"matches")&lt;/FONT&gt;,'SiteID',${siteid}).&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Fri, 19 Jul 2024 17:02:26 GMT</pubDate>
    <dc:creator>BrentDavis</dc:creator>
    <dc:date>2024-07-19T17:02:26Z</dc:date>
    <item>
      <title>Passing URL Parameters into a Search Appearance</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/passing-url-parameters-into-a-search-appearance/m-p/1506369#M57945</link>
      <description>&lt;P&gt;I am using the Field Maps app to generate a URL link to open Survey123 in the pop up. The URL passes a parameter called "siteid" to the survey, and once the survey is completed (or closed) it will callback to the field maps app:&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;arcgis-survey123://?itemID=&lt;FONT color="#FF0000"&gt;{surveyID}&lt;/FONT&gt;&amp;amp;update=true&amp;amp;field:search_mode=manual&amp;amp;field:siteid=&lt;FONT color="#FF0000"&gt;{siteID}&lt;/FONT&gt;&amp;amp;callback=https%3A%2F%2Ffieldmaps.arcgis.app%2F%3FreferenceContext%3Dopen%26itemID%3D&lt;FONT color="#FF0000"&gt;{fieldmapsID}&lt;/FONT&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;In my XLSForm, I have a select_multiple question where I search a value called 'LotCode' from a feature service and filter the list based off the input parameter "siteid' matching 'SiteID' in the feature service:&lt;/P&gt;&lt;P&gt;compact search('Lotcode?url=&lt;FONT color="#FF0000"&gt;{featureServiceUrl}&lt;/FONT&gt;','matches','SiteID',${siteid}).&lt;/P&gt;&lt;P&gt;However, the survey does not filter the list by siteid and will instead give me the entire list of all lotcodes.&amp;nbsp;The filter works if the SiteID was selected or keyed in directly in the survey.&amp;nbsp; Maybe something is being bypassed with URL parameters and it is not triggering the filtration step to occur, or this is a bug. Can anyone help me with this?&amp;nbsp;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 17 Jul 2024 21:23:05 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/passing-url-parameters-into-a-search-appearance/m-p/1506369#M57945</guid>
      <dc:creator>BrentDavis</dc:creator>
      <dc:date>2024-07-17T21:23:05Z</dc:date>
    </item>
    <item>
      <title>Re: Passing URL Parameters into a Search Appearance</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/passing-url-parameters-into-a-search-appearance/m-p/1507362#M57996</link>
      <description>&lt;P&gt;Update: I was able to find a solution - not perfect it works.&lt;/P&gt;&lt;P&gt;The issue seems to be that the search appearance expression only evaluates if there is a calculated expression that feeds into it. This will rerun the filter on the search.&amp;nbsp; For example, a prior question can be used to rerun the filter. Replace 'matches' with&amp;nbsp;concat(substr(${some_prior_question},1,1),"matches").&amp;nbsp; This will still always output 'matches'.&amp;nbsp; Replace:&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;compact search('Lotcode?url=&lt;/SPAN&gt;&lt;FONT color="#FF0000"&gt;{featureServiceUrl}&lt;/FONT&gt;&lt;SPAN&gt;',&lt;FONT color="#0000FF"&gt;'matches'&lt;/FONT&gt;,'SiteID',${siteid})&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;with&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;compact search('Lotcode?url=&lt;/SPAN&gt;&lt;FONT color="#FF0000"&gt;{featureServiceUrl}&lt;/FONT&gt;&lt;SPAN&gt;',&lt;FONT color="#0000FF"&gt;concat(substr(${some_prior_question},1,1),"matches")&lt;/FONT&gt;,'SiteID',${siteid}).&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 19 Jul 2024 17:02:26 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/passing-url-parameters-into-a-search-appearance/m-p/1507362#M57996</guid>
      <dc:creator>BrentDavis</dc:creator>
      <dc:date>2024-07-19T17:02:26Z</dc:date>
    </item>
    <item>
      <title>Re: Passing URL Parameters into a Search Appearance</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/passing-url-parameters-into-a-search-appearance/m-p/1514337#M58288</link>
      <description>&lt;P&gt;Getting the same problem in Survey123 mobile app but works in web app. OP solution did not work for me. Forced to only use the web app as a solution.&lt;/P&gt;</description>
      <pubDate>Tue, 25 Feb 2025 17:56:22 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/passing-url-parameters-into-a-search-appearance/m-p/1514337#M58288</guid>
      <dc:creator>WilliamLasley</dc:creator>
      <dc:date>2025-02-25T17:56:22Z</dc:date>
    </item>
    <item>
      <title>Re: Passing URL Parameters into a Search Appearance</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/passing-url-parameters-into-a-search-appearance/m-p/1527315#M58718</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;P&gt;Actually, the issue is with the update=true parameter. This bypasses form logic during the initial load. Could you try removing it and the filter should work as expected in Survey123? Btw if you are planning to build a website I'll recommend &lt;A href="https://www.wix-pro.com.au/" target="_self"&gt;&lt;U&gt;&lt;FONT color="#000000"&gt;Olya Black&lt;/FONT&gt;&lt;FONT color="#000000"&gt; Wi&lt;/FONT&gt;&lt;FONT color="#000000"&gt;x&lt;/FONT&gt;&lt;FONT color="#000000"&gt; Pro&lt;/FONT&gt;&lt;/U&gt;&lt;/A&gt; For this.&amp;nbsp;&lt;/P&gt;&lt;/BLOCKQUOTE&gt;</description>
      <pubDate>Mon, 26 Aug 2024 17:42:32 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/passing-url-parameters-into-a-search-appearance/m-p/1527315#M58718</guid>
      <dc:creator>madyema</dc:creator>
      <dc:date>2024-08-26T17:42:32Z</dc:date>
    </item>
  </channel>
</rss>

