Hoping somebody can chime in and tell me whether or not I'm on a wild goose chase.
My issue:
I have a survey with nested repeats, one of which uses a search appearance to query a feature service and return options. When a survey is opened using url parameters (see this post and this post) it gets completely bricked - previous repeats that existed are wiped out. There is no calculation to fire, none of the previously recorded information, etc. Calculation mode is 'always' so it seems like this shouldn't be a problem.
I've tried it using arcade, as below:
var urlsource = 'arcgis-survey123://?';
var params = {
itemID: '6c6ed14f3b9749f098b2e84c6d9ed18c',
action: 'edit',
'q:globalId': $feature.GlobalID,
folder: 'inbox',
update: 'true'
};
var url = urlsource + UrlEncode(params);
var incName = $feature.IncidentName
var surveyHTML = '<br><a href='+url+' style = "color:#1e90ff">Click to Launch Survey for '+incName+' Incident</a>'
return {
type : 'text',
text : surveyHTML //this property supports html tags
}
As well as just manually putting the URL together.
I have also tried just using this method:
https://survey123.arcgis.app/?itemID=6c6ed14f3b9749f098b2e84c6d9ed18c&action=edit&update=true&folder=*
....and it wipes out the custom map, even if being opened by the same person who performed the survey.
Is there a methodology that actually works for what I'm trying to accomplish? I have a few dozen users submitting some fairly complicated surveys. I'd like them to be able to open their surveys and edit them from a means other than the Sent folder on their device. Is this possible?