I have created a survey (using Survey123 Connect) using a current hosted feature service (AGOL) with a related table.
I want to be able to select the current feature (line) and have the survey populate the survey data to the related table.
When I publish the survey and test it only allows me to create a new line feature instead of selecting a current one. Somehow need to pass the GlobalID from the Feature Layer to the Parent GUID to the related table.
Would really appreciate any help.
Solved! Go to Solution.
If you want to select a feature (parcel) on a map a pass the attributes to a Survey123 form and prepopulate answers, this is not possible from within Survey123, but is possible by using Field Maps or Collector, and configuring a link via the custom URL scheme, to pass the value into the survey.
Please refer to https://community.esri.com/t5/arcgis-survey123-blog/understanding-survey123-s-custom-url-scheme/ba-p...
And also in the documentation: https://doc.arcgis.com/en/survey123/reference/integratewithotherapps.htm
Regards,
Phil.
Have you enabled the Inbox for yoru survey and also ensure you have a reepat in your survey for the related table. If so, you then need to ensure you have added the needed syntax to the bind::esri:parameters column to query the repeat records.
lease refer to: https://doc.arcgis.com/en/survey123/desktop/create-surveys/prepareforediting.htm#ESRI_SECTION1_80CFF...
Regards,
Phil.
Hi Philip,
Thank you so much for your time and expertise.
I did initially set up this way but I do not want the user to create any features, but select from an existing feature and have the data pass to the related table.
I found this article:and mid page this paragraph:
Settings worksheet:https://community.esri.com/t5/arcgis-survey123-blog/working-with-existing-feature-services-in-arcgis...
The settings worksheet of the initial XLSForm contains two key pieces of information:
While you often may not want to change the submission_url, there is one use case where changing the form_id is very handy. Think for example, that you want to create a survey on top of a related standalone table. For clarity, lets think of a feature service with parcels (polygons) and their related assessments. You may not want to build a survey to edit the parcels, but you may want to create one to create the assessments. Typically, when you get the initial XLSForm design, you will have questions in your survey for all the fields in the parcels layer and then a repeat group, with all questions in the related assessment table. This is only because in a feature service, typically the layer with geometries (parcels in our case) goes first, and then the related tables. To create your parcel assessment survey you will delete all questions corresponding to the parcels layer from your survey and then take the name of your assessments repeat and put it into the form_id setting. Finally you will delete the begin_repeat and end_repeat rows in your survey.
To ensure that assessment data is properly attached to the corresponding parcel, it is important that in your survey you preserve a question to enter the unique identifier of the parcel. You will need to know what field in the child assessment table is used for the geodatabase relationship.
How do I have the user select the parcel and pass the parcel Unigue ID to the related table?
If you want to select a feature (parcel) on a map a pass the attributes to a Survey123 form and prepopulate answers, this is not possible from within Survey123, but is possible by using Field Maps or Collector, and configuring a link via the custom URL scheme, to pass the value into the survey.
Please refer to https://community.esri.com/t5/arcgis-survey123-blog/understanding-survey123-s-custom-url-scheme/ba-p...
And also in the documentation: https://doc.arcgis.com/en/survey123/reference/integratewithotherapps.htm
Regards,
Phil.
Thanks so much for youe help. I did manage to figure it out.