Select to view content in your preferred language

Survey123 Connect: Created survey with existing hosted feature with related table. Cannot select existing feature only create new feature.

2610
5
Jump to solution
05-27-2021 11:58 AM
Charlene_Godfrey
Emerging Contributor

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.

0 Kudos
1 Solution

Accepted Solutions
by Anonymous User
Not applicable

Hi @Charlene_Godfrey,

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.

View solution in original post

5 Replies
by Anonymous User
Not applicable

Hi @Charlene_Godfrey,

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.

0 Kudos
Charlene_Godfrey
Emerging Contributor

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:

  • submission_url: This column defines the url of the feature layer item in your ArcGIS Organization on which responses to your survey will be stored. This is the exact url of the feature layer you chose in the Create New Survey dialog as the seed of your survey.  Note that this is the url to the feature layer item, rather than the url of the feature service itself. 
  • form_id: This column defines the name of the layer in your feature service that your survey will hit.  If empty, your initial  XLSForm design will always point to the first layer found in your feature service.

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.

0 Kudos
Charlene_Godfrey
Emerging Contributor

How do I have the user select the parcel and pass the parcel Unigue ID to the related table?

0 Kudos
by Anonymous User
Not applicable

Hi @Charlene_Godfrey,

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.

Charlene_Godfrey
Emerging Contributor

Thanks so much for youe help. I did manage to figure it out.