Select to view content in your preferred language

Custom URL for Survey123 web form?

4908
21
01-10-2018 08:01 AM
ShaneClarke
Esri Contributor

Is there a way to open a Survey123 web form and pass field parameters to the web form?
Here is what I want to do: I want to create a hyperlink to open the Survey123 web form and pre-populate fields, including passing the x,y coordinates for the geopoint location. Any suggestions on how to do this?
(Are custom-URL parameters only supported for the Survey123 apps, or are they also supported for the web form?)
Thanks!

Tags (2)
0 Kudos
21 Replies
CalebAnderson
Occasional Contributor

I know this is an older post but I have been banging my head against this one for some time... Found this which answered the question as to why the web url was centering on 0,0:

https://community.esri.com/groups/survey123/blog/2019/02/06/survey123-tricks-of-the-trade-web-form-u... 

TylerGrosshuesch3
Occasional Contributor

I'm also having trouble with coordinates when using the web form. The URL seems to be good, but instead of being in Minnesota the points are at (0,0). Other fields passed to the web form work as expected. Passing the same coordinates to the Survey123 app on Windows puts the dot in the right place.

Sample web form URL resulting in point at (0,0):

https://survey123.arcgis.com/share/152181454a34477885bf5a6052aee95f?center=45.09388309000008,-93.436...

Sample Survey123 app URL resulting in point at desired location:

arcgis-survey123://?itemId=152181454a34477885bf5a6052aee95f&center=45.09388309000008,-93.43662747099995

RatheeshKR
Emerging Contributor

Thanks its working

0 Kudos
AdamBakiera
Frequent Contributor

We are trying to pass latitude and longitude points from a pop-up as well. Here is the syntax we're using:

https://survey123.arcgis.com/share/6a9fa702496a4ccb966523384ca210cd?center={Longitude},{Latitude} 

This doesn't center the resulting map on the lat/long inside of the survey form. Here is what the url looks like: 

https://survey123.arcgis.com/share/6a9fa702496a4ccb966523384ca210cd?center=, 

Is there something we need to change in the survey itself?

0 Kudos
JamesTedrick
Esri Esteemed Contributor

Hi Adam,

Just to check, are there Longitude and Latitude fields in the table of the features?  Also, the format should be Latitude,Longitude.

0 Kudos
AdamBakiera
Frequent Contributor

Good morning James,

So we're using the Serviceability Lookup Solution. We want to capture the lat/long from the address that the customer is inputting. I know that lat/long is stored in one of the layers (Request Tracking) that is included in the solution. The problem I've ran into is that I can't get a second copy of that Request Tracking layer to test with. We have already deployed it once before and it is in full use on our website, so I would prefer not to test on that layer because it will throw our numbers off. Another issue we have to account for is the random ordering of the pop-ups. Because of this, I created an invisible layer in which our Survey123 form is stored. This way, the form always shows up at the bottom. We do not have lat/long data in this invisible layer. 

0 Kudos
ChrisJones4
Emerging Contributor

Hi James, 

I'm having a issue when I use the Explorer app to create a survey, it doesn't put the point where the pole is and it was created from using a custom attribute config.with a custom URL

0 Kudos
JamesTedrick
Esri Esteemed Contributor

Hi Chris,

Can you provide more details about the URL you are using to open Survey123?

0 Kudos
ChrisJones4
Emerging Contributor

James, 

arcgis-survey123://?itemID=0d8e8aa764b04b9a886906773f9f1ad9&field:gis_map_number={MapNumber}&field:inspection_feeder={Feeder}&center={Latitude},{Longitude}

0 Kudos
JamesTedrick
Esri Esteemed Contributor

Hi Chris,

How many digits are your Latitude/Longitude fields displaying?  Can you look at the values (say, by copying the link in the Map Viewer)?

0 Kudos