I am developing a Survey123 inspection for structure type verification against an existing feature service. In the pop-up of the features, I want there to be 3 links, one to submit the survey if all the attributes are correct, one to change the structure type and have the user manually submit, and a third that submits a survey that the feature does not exist.
I tried adding 'action=submit' to the URL Scheme and it takes me to an empty inbox for the survey.
Is this the correct syntax? Is it possible to auto-submit from a URL Scheme link?
If the feature providing the pop-up is related to the survey features you can build the link as an Arcade expression:
"https://survey123.arcgis.app?itemID=<survey_form_id>&field:parentglobalid=" + UrlEncode($feature.globalid)
If the pop-up is coming from the Survey123 data, the actions you want to use are collect (new survey from scratch), copy (new survey from an existing feature) or edit (modify the existing feature). You can build the link for a copy or edit in Arcade like:
"https://survey123.arcgis.app?itemID=<survey_form_id>&action=<edit/copy>&q:globalId=" + Lower(Mid($feature.globalid, 1, 36))
You can add field: parameters to prefill questions with static values or something from the pop-up feature using Arcade, with this you can create partially complete forms based on your criteria. I can't think of a way to auto-submit the form but you can prefill the form to the point where the user just has to tap 1 button in the field app.
@DavidSolari wrote:If the feature providing the pop-up is related to the survey features you can build the link as an Arcade expression:
"https://survey123.arcgis.app?itemID=<survey_form_id>&field:parentglobalid=" + UrlEncode($feature.globalid)
If the pop-up is coming from the Survey123 data, the actions you want to use are collect (new survey from scratch), copy (new survey from an existing feature) or edit (modify the existing feature). You can build the link for a copy or edit in Arcade like:
"https://survey123.arcgis.app?itemID=<survey_form_id>&action=<edit/copy>&q:globalId=" + Lower(Mid($feature.globalid, 1, 36))
You can add field: parameters to prefill questions with static values or something from the pop-up feature using Arcade, with this you can create partially complete forms based on your criteria. I can't think of a way to auto-submit the form but you can prefill the form to the point where the user just has to tap 1 button in the field app.
When you say, tap 1 button in the field app are you talking about accessing the pop-up from Field Maps and there is a single hyperlink to open Survey123 and click Submit in the S123 app? Or are you referring to something completely within Field Maps?
My org uses the Field Maps to Survey123 route a ton, how are you getting pop-ups and how are you filling out the survey forms? If you're going from a web map/app to the Survey123 website you have fewer URL params to play with so my suggestions might not work.
I am using a hyperlink with a URL scheme in the pop-ups in Field Maps to open Survey123. This accomplishes what I need to transfer attributes for the questions. I was just hoping there would be something that would allow field users to click on a hyper link and submit the survey if all the information was correct or if a feature did not exist in the field. Otherwise they would use a third link to modify the attributes in the survey.
I was hoping there was a method to submit via URL Scheme hyperlink to save field users time on switching apps and submitting surveys, but in reality it is only a couple clicks and they will be able to check the survey before they submit it. I couldn't find any documentation on submitting a survey through the URL Scheme, but I was uncertain if I was missing it somewhere in the documentation.
If I'm interpreting your process right, I think your best move is three hyperlinks (one for each workflow) or use arcade to dynamically present the right hyperlink, or some combo of the two. You can have hyperlinks in Survey123 forms that lead to other Survey123 forms but I found the user experience is poor due to the lack of geographic context.