Web Map's Custom URL to Survey123 not working

329
4
Jump to solution
08-30-2022 07:52 AM
RachelGreene
New Contributor II

I've used custom URLs in web maps to get to Survey123 in the browser and pre-populate answers for the past two(+) years. Today I replaced a layer in a web map and configured the pop-up in the same way that I've been doing. Today, ArcGIS decided to break. When I click on the URL in the web map's pop-up, I get a blank web page with the URL of "untitled:blank." What's going on? Did Esri change something?

Here's the custom URL:

arcgis-survey123://?itemID=028386654aae464ba8cbde39b1d264dc&field:Forester={forester}&field:CountyName={county}&field:FName={owner_fname}&field:LName={owner_lname}&field:TractID={tract_id}&field:Contact={bill_name}&field:MAILADDR={bill_address}&field:MAILCITY={bill_city}&field:STATE={bill_state}&field:ZIP={bill_zip}&field:Phone={phone}&field:Email={email}&field:Presc_Long={point_long}&field:Presc_Lat={point_lat}

0 Kudos
1 Solution

Accepted Solutions
Katherine_Clark
MVP Regular Contributor

Ohhhhh I see. I did a bit more research and I think I understand your issue better now. 

To open in a web browser, you need to use different syntax. Try something like this:

https://survey123.arcgis.com/share/028386654aae464ba8cbde39b1d264dc?field:Forester={forester}

I know you need to use question marks instead of ampersands to separate the parameters...

Does that help at all?

Best,
Katherine

View solution in original post

4 Replies
Katherine_Clark
MVP Regular Contributor

I had an issue with custom URL's the other day and identified it to be a bug with Esri support. This was the conclusion...does it apply to you?

  • Primary Issue: Opening the Survey From a URL caused survey123 to be stuck on a loading screen
  • Cause:BUG-000149557-ArcGIS Survey123 app (3.14.255+) fails to load a prepopulated survey link when position(..) is used in a repeat hidden or note type question in the calculation column.
  • Resolution: Made the questions (12,23) text or integer questions, and make use the Read Only parameter so that the position calculation is not tampered with.

What version of the Survey123 app are you using? 

Best,
Katherine
0 Kudos
RachelGreene
New Contributor II

I seem to have a different problem. If I remove all the fields that should have prepopulated information (so just the arcgis-survey123://?itemID=028386654aae464ba8cbde39b1d264dc part), I still get a blank web page. I don't want to use the Survey123 mobile app. I need to be able to transition from a web map to Survey123 in a web browser. I can link the survey in a web map as a regular URL (https://arcg.is/1eXuXz), but I can't add fields and pre-populate information with that kind of link.

0 Kudos
Katherine_Clark
MVP Regular Contributor

Ohhhhh I see. I did a bit more research and I think I understand your issue better now. 

To open in a web browser, you need to use different syntax. Try something like this:

https://survey123.arcgis.com/share/028386654aae464ba8cbde39b1d264dc?field:Forester={forester}

I know you need to use question marks instead of ampersands to separate the parameters...

Does that help at all?

Best,
Katherine
RachelGreene
New Contributor II

Thanks! I just found the article that explains the different syntax. In case anyone else needs it, it's here: https://community.esri.com/t5/arcgis-survey123-blog/survey123-tricks-of-the-trade-web-form-url/ba-p/...