Select to view content in your preferred language

Problems with creating Survey123 URL in dashboard map

2803
10
Jump to solution
02-08-2019 11:28 AM
Trippetoe
Frequent Contributor

We have created a web map with a pop-up dialog box that generates a URL that opens a Survey123 survey. That functionality works great. However,  when we add the web map to an Ops Dashboard, that URL has some funky URL encoding added which messes up the URL so that the survey can not be opened.

Here is the URL that is generated in the pop-up from the stand-alone web map (I have replaced the item id, lat, lon and firm name with generic values😞  

arcgis-survey123://?itemID=<item-id>&center=<lat>,<lon>&field:FIRMNAME=<firm-name>&field:METRO_FSCRP_ID=fscrp10000251&field:STREET=4130%20SW%20117TH%20AVE%20%23%20H

Here is the URL that is generated in the pop-up from the Ops Dashboard web map:

arcgis-survey123://?itemID=<item-id>%C2%A2er=<lat>,<lon>&field:FIRMNAME=<firm-name>&field:METRO_FSCRP_ID=fscrp10000251&field:STREET=4130%20SW%20117TH%20AVE%20%23%20H

Note that "&center" in the URL generated in the stand-alone web map pop-up has been replaced by "%C2%A2er" in the URL in the Ops Dashboard map pop-up.  The result is that an invalid itemId is created and Survey123 can't open the survey..... the Survey item ID contains a cent character.

0 Kudos
10 Replies
TanGnar
Frequent Contributor

I had this issue as well. It was producing the 'cents' sign when 'center' followed ampersand. But I am linking to a survey123 on the web rather than native app. When I put 'center' as the first parameter, following a question mark, it worked. 

https ://survey123.arcgis.com/share/<itemid>?center=30.5,-80.5

However, I ran into another issue where I want to use the URL Encode function in Arcade. It works fine from the web map, but does not work from dashboard. I'm trying to handle apostrophes that break the URL. 

0 Kudos