Hello all,
I am trying to create a basic line in a web app and then apply attributes via Survey123. Basically I draw a line in the web app, then I use the URL link in the feature pop up to link to the survey. It will pull up a new survey, but it is not pulling up the associated link I just drew.
In my most recent test I can see the field name in the address bar but it is not populating the form.
https://survey123.arcgis.com/share/2b3a0468698c4d76805b0e13d506e0f5&field:mainline=cp?portalUrl=https://giscat.ne.gov/portal
Any insight would be appreciated, thanks!
Shelley
That would be for editing existing features with a survey, which sounds like what you're aiming for.
When you use mode=edit, you've got to give the survey a way to find the feature in question, so you'll need to use an additional parameter. As of a recent update, Survey123 needs to reference the globalID of the feature, not the objectID.
Stick "&mode=edit&globalId={globalid}" on the end of that URL from before, that should do it.
See this page for more info about editing existing features through a survey if you hit any speed bumps.
What's the popup URL look like, the same as you posted?
Make sure you use brackets, since you're accessing an attribute.
Also, the first URL parameter comes after the "?", and successive parameters use "&", so you might re-write it like this:
survey-url?portalUrl=<your-url>&field:mainline={mainline}
Thank you, I will try that! Also, do I need to have mode=edit in the URL?
Yes, i have referenced that page a lot but I still can't get it to work.
This is what i'm trying now
arcgis-survey123://?itemID=2b3a0468698c4d76805b0e13d506e0f5&mode=edit&globalId={globalid}&field:mainline={mainline}
You can view the application itself if you'd like
https://giscat.ne.gov/portal/apps/webappviewer/index.html?id=5196e3b373b743a9a03cbafa6f8cc16d
I have finally figured it out! Thanks to your help and a bit of digging on YouTube. Thanks!
Hi Shelley, I am having this same issue, can you share what finally worked for you?
I am experiencing an issue where when I specify an additional URL parameter e.g. &mode=edit&globalId={globalid}&field:fieldname={fieldvalue} affects how the data is populated from the existing feature. In my case the existing feature does not populate values for any "select_one question" that has autocomplete search using feature service. The values only populate when the URL does not have the text &field:fieldname={fieldvalue} Has anyone come across this?
Přihlášení členové mohou přispívat, sledovat aktualizace a další. Jste tu noví? Zaregistrujte si bezplatný účet.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.