Does Survey123 on the Web have a URL scheme?

1264
10
12-07-2017 12:41 PM
BrianHiller
Occasional Contributor

Does Survey123 have a URL scheme which can be used to pass data into the browser version of the survey?

I'd like to use a URL like the one below to pass a value into the browser version of survey123, is this possible?

https://survey123.arcgis.com/share/d8d5ec1995c7477ab8df803f92ed6522?Text1=Test Data

If something like this worked I would expect the Text1 text box to be filled in with the words "Test Data" when the survey opens in the browser.

0 Kudos
10 Replies
JamesTedrick
Esri Esteemed Contributor

Hi Brian,

Web forms published via Survey123 support the same URL parameters as the native app (Integrate with other apps—Survey123 for ArcGIS | ArcGIS) - field:<field name>=<value> . 

0 Kudos
BrianHiller
Occasional Contributor

Thank you, I guess this does not work in the browser however you cannot pass information into the browser version of the form correct?

Brian Hiller

Project Manager

Burns & McDonnell

0 Kudos
JohnathanHasthorpe
Esri Regular Contributor

Hi Brain - yes you can do this.

The format for the web form (published by Connect) would be along the lines of: https://survey123.arcgis.com/share/xxxxxxx?center=37.8199,-122.4783&field:integer_1=1

In this example we are passing in a location and a integer to the integer_1 field.

It is the same url scheme for both the web and the field app - but they start differently:

Web: https://survey123.arcgis.com/share/xxxxxxx? 

Field App: arcgis-survey123://?itemID=xxxxxxx 

(XXXXXXXX represents the form item id)

In your example 

https://survey123.arcgis.com/share/d8d5ec1995c7477ab8df803f92ed6522?Text1=Test Data

Should be

https://survey123.arcgis.com/share/d8d5ec1995c7477ab8df803f92ed6522?field:Text1=Test Data

BrianHiller
Occasional Contributor

I just tried this and it does not work, have you been able to do it with integer fields? I made the survey public feel free to try and submit a record using the URL like you formatted below, does it work for you?

https://survey123.arcgis.com/share/d8d5ec1995c7477ab8df803f92ed6522?field:Text1=Test

Thanks for looking at this,

Brian

0 Kudos
JohnathanHasthorpe
Esri Regular Contributor

Hi Brian

This functionality currently only works in forms created through Connect. It looks like your form was created in the web - so this is why things are not working.

We do have an enhancement request open to address this limitation and will add your details to it.

Cheers

John

0 Kudos
BrianHiller
Occasional Contributor

Okay, not a problem, I do most of my forms with Connect anyways. I just wanted to test to see if this functionality worked after the AGOL update so I did a quick web form. I’ll give it a shot with Connect.

Thanks again for looking into this.

Brian

0 Kudos
FranciscoAndrade1
Occasional Contributor

I am also trying to use the web to create the survey. This is due to connect requires the user filing out the survey to answer the question regarding tracking of the location even if no geopoint is entered when creating the survey. If the user exists out of the prompt or doesn't answer the prompt, the survey will never be submitted.

Not sure if you can also look into that.

0 Kudos
JamesTedrick
Esri Esteemed Contributor

Hi Francisco,

Survey123 is requesting location because surveys published from Survey123 Connect are point layers; the behavior of the app (which we imitated in the web) is to automatically record the location of the submitter.  The issue with canceling out of the location dialog is being looked into.

0 Kudos
FranciscoAndrade1
Occasional Contributor

James,

I am glad to hear that. This has really been affecting us since we want to open a survey to the public but we cannot depend on every customer to answer the prompt. 

Once this is fixed, we will be using SAP to generate the survey123 link with the required parameters in the link. If possible, would you happen to have a tentative date when this will be fixed?

0 Kudos