Select to view content in your preferred language

Passing URL Parameters into a Search Appearance

42
0
8 hours ago
BrentDavis
New Contributor III

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:

arcgis-survey123://?itemID={surveyID}&update=true&field:search_mode=manual&field:siteid={siteID}&callback=https%3A%2F%2Ffieldmaps.arcgis.app%2F%3FreferenceContext%3Dopen%26itemID%3D{fieldmapsID}

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:

compact search('Lotcode?url={featureServiceUrl}','matches','SiteID',${siteid}).

However, the survey does not filter the list by siteid and will instead give me the entire list of all lotcodes. The filter works if the SiteID was selected or keyed in directly in the survey.  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?  

0 Kudos
0 Replies