Select to view content in your preferred language

Values from a repeat are always shown in web form

231
2
Jump to solution
06-12-2024 02:39 AM
Sven_Harpering
Esri Contributor

Hey,

I am not sure if the following behavior is "works as designed" or not: I have created a form via Survey123 Connect. The form includes a repeat. I am not using the keyword "query" in the column esri::bind::parameters. If I am activating the inbox for the native app, all features are loaded except the values from the repeat. That is like I expected it. If I am opening the form in the web using "mode=edit", the form is opened in edit mode for the specific feature, but also all repeat values are shown for this feature.

Is this the expected behavior in the web form?

Best

Sven

Passionate about GIS and on the journey as an instructor for analytical insights.
0 Kudos
1 Solution

Accepted Solutions
ChristopherCounsell
MVP Regular Contributor

https://doc.arcgis.com/en/survey123/desktop/create-surveys/prepareforediting.htm#ESRI_SECTION1_80CFF...

By default, no related records are available with the survey responses from the Inbox or the Sent folder. To access related records for a response, define a query in the bind::esri:parameters column for the begin repeat question type. The query property supports the same parameters as the WHERE expressions above, for example, query="Editor='BKlauser'", to download only the related records with 'BKlauser' in the Editor field.

https://doc.arcgis.com/en/survey123/browser/get-answers/editexistingdata.htm#ESRI_SECTION1_C4ECC19E6...

The survey opens with all answers from the initial record filled in.

This is what I'd expect and what the documentation outlines. The parameters are for use with the Inbox or the Sent folder, which do not exist in the web form.
 
I generally advise Connect = field app, web designer = web form. Complex and powerful vs simple and easy. This isn't a hard line but it helps rule out general incompatibility issues for those not keeping up to date with all the intricacies of what is supported in one vs the other. When you need Connect functionality, you can bring a web form into it to expand it and test that functionality explicitly for compatibility. 

View solution in original post

2 Replies
ChristopherCounsell
MVP Regular Contributor

https://doc.arcgis.com/en/survey123/desktop/create-surveys/prepareforediting.htm#ESRI_SECTION1_80CFF...

By default, no related records are available with the survey responses from the Inbox or the Sent folder. To access related records for a response, define a query in the bind::esri:parameters column for the begin repeat question type. The query property supports the same parameters as the WHERE expressions above, for example, query="Editor='BKlauser'", to download only the related records with 'BKlauser' in the Editor field.

https://doc.arcgis.com/en/survey123/browser/get-answers/editexistingdata.htm#ESRI_SECTION1_C4ECC19E6...

The survey opens with all answers from the initial record filled in.

This is what I'd expect and what the documentation outlines. The parameters are for use with the Inbox or the Sent folder, which do not exist in the web form.
 
I generally advise Connect = field app, web designer = web form. Complex and powerful vs simple and easy. This isn't a hard line but it helps rule out general incompatibility issues for those not keeping up to date with all the intricacies of what is supported in one vs the other. When you need Connect functionality, you can bring a web form into it to expand it and test that functionality explicitly for compatibility. 
Sven_Harpering
Esri Contributor

@ChristopherCounsell , thx.

Passionate about GIS and on the journey as an instructor for analytical insights.