Hello all,
I posted this in the Survey123 question board. Hope I can get some advice.
I have a map that will be used in the Collector app to launch a form in Survey123. It will pass a few parameters that are built in Arcade.
I've tested this on the desktop (map viewer & survey123 app) and Field Maps on my mobile device and worked perfectly. However, when I use the Collector app, not all arcade expressions are passed to the survey. This case, x, y information is successfully passed as geopoint but not about intersecting polygon's attributes.
Here is my sample html. Do I need to make any difference to work with Collector? or Collector does not support passing arcade values as attributes?
* expression 3 and 4 do not work.
expression 3: define if there is a critical route within 500m from the selected feature. It will return either yes or no.
expression 4: define the service area number based on polygon and selected feature's intersection.
<a href="arcgis-survey123://?itemID= ZZZ&field:Structure_Number={Structure_No}&field:Structure_Name={Structure_Name}&field:Highway={HIGHWAY_ROUTE_1}&field:Critical_Route={expression/expr3}&field:Asset_Type=BRIDGE&field:Service_Area={expression/expr4}&center={expression/expr0},{expression/expr1}&callback=arcgis-collector://?itemID=AAA" rel="nofollow ugc noopener noreferrer" target="_blank">
Thank you all.
K