I have followed the instructions from this support page https://support.esri.com/en/technical-article/000021198 , which should allow me to populate the attributes of a polygon (which is related to a parent point) with the answers from a survey123 form.
However, when I submit the form, the polygon's attributes are not populated, and I get an extra record in my polygon layer with no geometry and this has all the values from the form populated.
How can I make my survey123 form populate my polygon rather than creating the geometry-less record?
Many thanks and apologies if I'm missing something really obvious here.
The support page above actually says that this method is for populating a related TABLE, not a spatial layer. Maybe that's why it is behaving like this.
Can someone confirm this please?
Would be great to know how to get the form to populate a related spatial layer's point/lines/polygons.
You have a polygon layer and you want to use Survey123 to update fields in that polygon layer, correct? (Not copy the geometry to a new layer, not create a related table with some sort of matching/join field?)
If that's the case, you need to use the option to create a new survey123 form from an existing feature layer (This is in Survey123 Connect....I haven't used the web designer in over 3 years so not sure what options existing there now)
In the example above, I'm using the "Feature Service" option to create a new survey from my "UAS Mapping Extents" feature layer.
A few random thoughts (based on ~2yr old experience with it):
EDIT: I missed the last part of your question, which was how can you make sure you're adding data to existing polygons, not creating new ones. What I posted above is still correct, but you'll need to set up a way for people to access and edit the existing polygons. There's many ways to do this.
- Use the "inbox" in the Survey123 App to find an existing record and then open it for editing:
-Use a web map to generate dynamic links to edit the selected feature via Survey123 web form URL parameters (Via arcade expressions and the feature popup)(can also be utilized in field maps and collector):
Arcade Expression used for that highlighted hyperlink above:
var urlLink = 'https://survey123.arcgis.com/share/SURVEY-ITEM-ID?mode=edit&globalId=' + $feature.GlobalID + '&field:closeout=no'
return urlLink
-Using Ops dashboard and a list element + embedded element (similar to the approach above)
Embedded content element set up to show the embedded survey123 web form, with URL parameters to access a specific record (objectID) in edit mode (This is an old setup. You'll need to use globalID now)
List element set up to filter the embedded content window to the objectID that's selected.