I am looking for a way to create a new Survey123 record that is prepopulated with data from an existing record. Ideally, I would like to have a Dashboard where a user selects an existing record from a list or a map and that initiates a new record with the values from the existing survey copied into all the fields, allowing them to update and add to this data in a new record. Following these two posts (https://community.esri.com/t5/arcgis-survey123-questions/duplicating-survey-editing-records-in-a-web... and https://community.esri.com/t5/arcgis-survey123-blog/survey123-tricks-of-the-trade-editing-records-in...), I was under the impression that I could do this just by using the URL parameters and simply omitting the mode parameter; however, when I try to open a survey without specifying mode=edit OR mode=view (e.g., link below), I get the following error: "Cannot read property 'view' of undefined"
(if I add mode=edit or mode=view to the URL, it works but those don't meet my needs of copying the data into a new record).
Am I missing something? Or, is there a better approach that I should be taking to accomplish this workflow?
Thanks in advance for any and all feedback.
Solved! Go to Solution.
Hi @KimberlyMcCallum ,
We will support a new mode: ?mode=copy&globalId=<existing_record_globalId> in the web form in mid-December update, which will copy the data from an existing record into a new survey. Could you please have a try then?
Jody Zheng Liu
This is working now! I am using it in my workflows but I guess you will have to setup your own test data to see it in action. Publish a survey, add a feature to it, go copy the global id and copy it using the URL parameters and your data:
I am trying something like this as well but am struggling with getting the data to pass to the new survey. How is it done? Do I put this url some where in the new survey as answers to the questions. I appreciate any and all help. Thank you.
Hi @JodyZhengLiu - I was wondering, does this work for surveys created with Survey123 Connect? And if so, would it work for copying surveys that are just in the "Outbox" folder? (our field crew always work offline and sync when they return to the office).
Thanks in advance!