Hi All,
I'm wondering if someone could shed some light into where I've gone wrong with my custom URL to integrate Field Maps with Survey123 please
I have configured a URL link pop up with the below:
https://survey123.arcgis.app?itemID=db254a64700f4892becca939a32b82f1&field:ASSET_REF={ASSET_REF}&field:SUPP_SCH={SUPP_SCH}&field:Address={Address}&field:what3words={what3words}&callback=https://fieldmaps.arcgis.app?itemID=ecd711f706fb4842a08ba6e74c1a1af2¢er=${Latitude},${Longitude}
Most of it working fine, it send them to Survey123 and auto completes the correct fields, however, my Geopoint question at the top of my form is still panning to the users location, rather than the location of the asset within Field Maps, so the ¢er=${Latitude},${Longitude} part is not working properly. I am currently using this format for the lat and long fields
Also once the users have completed the form and gets sent back to the Field Maps app, they are receiving this error message:
Does anyone have any idea where i've gone wrong please?
Solved! Go to Solution.
Hi All,
I needed to add in the ?referenceContext=open into the URL but i was getting an Unpacking error. I've found this post Solved: Custom Survey123 URL with Field Maps Callback - Esri Community
I used the about ecoding website and followed the solution by encoding the callback URL:
https://fieldmaps.arcgis.app/?referenceContext=open&itemID=ecd711f706fb4842a08ba6e74c1a1af2
into this: https%3A%2F%2Ffieldmaps.arcgis.app%2F%3FreferenceContext%3Dopen%26itemID%3Decd711f706fb4842a08ba6e74c1a1af2
And its finally worked! Hooray
Hi All, Just to let you know I've managed to fix the Centre Parameter by moving it down the URL before the call back, silly mistake on my part! I also removed the $ and it works perfectly.
https://survey123.arcgis.app?itemID=db254a64700f4892becca939a32b82f1&field:ASSET_REF={ASSET_REF}&field:SUPP_SCH={SUPP_SCH}&field:Address={Address}&field:what3words={what3words}¢er={Latitude},{Longitude}&callback=https://fieldmaps.arcgis.app?itemID=ecd711f706fb4842a08ba6e74c1a1af2
Now just need to fix the error message...
Hi All,
I needed to add in the ?referenceContext=open into the URL but i was getting an Unpacking error. I've found this post Solved: Custom Survey123 URL with Field Maps Callback - Esri Community
I used the about ecoding website and followed the solution by encoding the callback URL:
https://fieldmaps.arcgis.app/?referenceContext=open&itemID=ecd711f706fb4842a08ba6e74c1a1af2
into this: https%3A%2F%2Ffieldmaps.arcgis.app%2F%3FreferenceContext%3Dopen%26itemID%3Decd711f706fb4842a08ba6e74c1a1af2
And its finally worked! Hooray
What I do is just have the callback be &callback=https://fieldmaps.arcgis.app This will simply flip back to the app. Since they just launched the URL they are already on the point so no need to tell Field Maps to zoom to it. It simply returns to where they were.