Select to view content in your preferred language

Using mode=copy with Field App

527
3
Jump to solution
10-21-2022 07:46 AM
CoreyLunty1
Occasional Contributor

Hello,

I was wondering if the ability to use the mode URL parameter to open a copy of an existing survey record has been implemented in the field app yet?

In a map authored with Map Viewer, I have polygon features and I am using an attribute expression to find the most recent inspection for each polygon feature, and then concatenate together a URL to try to open survey123 from within Field Maps

Example result:

arcgis-survey123://?itemID=[map item_id here]&mode=copy&globalId=517A2C24-2A78-496E-932C-EB8BA973C707 

I have tried using global IDs both with and without the braces enclosing them, but no luck. There are no errors messages, but the survey just opens with no answers prefilled. I am the owner of the survey form and layer.

I am testing using Survey123 on my iPhone. I do not have an Android device to test with, however our field users would be using Android devices.

I would simply use URL parameters to pre-populate answers, but the form uses repeats I would like pre-populated too, so this is not an option.

I'm paging @JamesTedrick  to this thread because he seems to be aware of Survey123 development status.

0 Kudos
1 Solution

Accepted Solutions
JenniferAcunto
Esri Regular Contributor

When using the field app the parameter is action=copy.

Parameters for a field app

- Jen

View solution in original post

0 Kudos
3 Replies
JenniferAcunto
Esri Regular Contributor

When using the field app the parameter is action=copy.

Parameters for a field app

- Jen
0 Kudos
CoreyLunty1
Occasional Contributor

Thank you for your quick reply! I should have read more carefully.

I change 'mode' to 'action' and upon clicking the URL, the app now opens the inbox when I click the hyperlink. Am I correct in assuming then that I need to have the inbox enabled for that survey, and that the survey response globalId I reference needs to correspond with a record matching the where clause of the inbox? 

0 Kudos
JenniferAcunto
Esri Regular Contributor

I usually work with browser based surveys, but i do believe the survey response you are trying to copy needs to be in the Inbox to launch it. I have added  &update=true to the URL before to refresh the inbox to ensure the correct survey response is relevant. If you have a filter set up on the inbox, the survey would probably need to match that filter to work. 

- Jen
0 Kudos