How to make related table links not visible in Field Map App when a Survey123 Form is used to collect data

518
7
Jump to solution
11-28-2023 10:47 AM
ChristineTombleson1
New Contributor III

Hello -

I have incorporated the use of Survey123 Connect forms in Field Maps for inspection tables that need more complicated forms for data collection. The links to related tables to my layer, show up in the pop up of a feature layer. Usually, it is the link to the related table that a user would click to open up the Field Maps data entry form.  However, I am using a Survey123 form and utilizing a button on the feature layer popup for data input.  I don't want users to try to input data into the related table link, only the Survey123 form via the button. In my app, some data in inputted into Field App forms and others use Survey123.  I don't want the app confusing to users where there are two options for Entering Quad data.  Does anyone know how to not have the Quad Data related table link show up if I am using a Survey 123 form for data entry for an inspection table? 

I want users to use the green Enter Quad Data button that opens a Survey123 form. I DON'T want users clicking on the Quad Data related table link below highlighted in yellow.  

ChristineTombleson1_0-1701197084850.png

 

 

 

  

0 Kudos
1 Solution

Accepted Solutions
ChrisDunn1
Esri Contributor

@KPyne it is currently an all-or-nothing setting. We are assessing how to better expose this functionality though, so if you have more details about your workflows or use-case for hiding related records for specific relationships, feel free to post over on the Field Maps Ideas page so other users can vote on the idea as well.

View solution in original post

0 Kudos
7 Replies
KPyne
by
Occasional Contributor

You can remove the related table from the Map Viewer to avoid it showing in Field Maps - this is the only way I have found that works so I hope someone has a better answer.
This is actually why I stopped using Field Maps for related records. Pop-Ups became cluttered and confusing - I also was unable to sort the table records.

SarahKendell
New Contributor II

This is a bit unrelated to your issue, but how did you create the button that is linked to a survey? I have used the long survey link with fields to auto-populate and it would be nice to hide all that text to clean up the popup view. Thanks!

0 Kudos
ChrisDunn1
Esri Contributor

@SarahKendell you can utilize HTML in a text popup element to create a button like that. This blog post has a pretty good overview: https://www.esri.com/arcgis-blog/products/arcgis-online/mapping/configure-pop-ups-custom-attribute-d...

The post doesn't have a button example, but you should be able to create a single cell table to get the same result.

0 Kudos
ChrisDunn1
Esri Contributor

@ChristineTombleson1 

There is a way to remove the related record link in the popup, though it requires using ArcGIS Assistant to edit the web map's json.

If you are comfortable doing so, view the json for the web map and on the "Data" tab, find the layer you are working with. The popup information is stored in the `popupInfo` array which contains two other arrays - `popupElements` and `fieldInfos`. After the `fieldInfos` array, add this json:

  "relatedRecordsInfo": {
                    "showRelatedRecords": false
                }

 This should remove the related record links from the popups for that layer.

I hope that helps!

Chris

0 Kudos
KPyne
by
Occasional Contributor

Thank you Chris, this is great to know!

Are you able to hide specific related layers, or is this an all or nothing setting?

0 Kudos
ChrisDunn1
Esri Contributor

@KPyne it is currently an all-or-nothing setting. We are assessing how to better expose this functionality though, so if you have more details about your workflows or use-case for hiding related records for specific relationships, feel free to post over on the Field Maps Ideas page so other users can vote on the idea as well.

0 Kudos
ChristineTombleson1
New Contributor III

Thank you.  I unfortunately need the other related layers to show up.  I only want the link to the related table that is being populated by the Survey 123 Form to not show up in the list (since it will be addressed by the button).  The user will click on the button for the survey form. Having the link to the table to a potential field maps app smart form is redundant and there will be no field map smart form for the link I want removed.  Hopefully this will be updated in the future.  

0 Kudos