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.
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> .
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
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
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
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
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
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.
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.
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?