Select to view content in your preferred language

Restrict editing to related record only; not allow adding new features to parent layer?

12108
25
Jump to solution
04-15-2022 10:02 AM
Caitlin_Todd_LCOR
Frequent Contributor

Hello all, 

I'm hoping this functionality is available in ArcGIS FieldMaps and I'm just missing where to configure it.

I have a 1:M feature layer between Sites and Inspections. I'm developing a map for field crews to go out and add new inspection records to sites. BUT, I cannot allow them to add/delete/update locations of sites. 

I tried restricting editing to only allow for attribute updates, but that also removes the ability to add new related records in the inspection table.

Is this workflow possible in ArcGIS FieldMaps right now? Is it on the roadmap sometime in the near future?

Thanks!

Caitlin

25 Replies
apgis16
Frequent Contributor

I have a survey123 layer with a repeatable section in it (which produces the related table in the hosted feature layer). I have URL parameters in a text element in the popup for the user to click on the link and open up the form in S123. However, it still technically lets the user add to the related table in Field Maps even when i don't have it show in the form or in the templates that I configured in the web map. I don't want the user to be able to edit the related table through that way, is there a way to hide it?

RPGIS
by MVP Regular Contributor
MVP Regular Contributor

So there might be a few things that can be tested.

  1. Create a hosted view that is updated in field maps but has a filter set in the map to only display certain values. This should restrict the editing of the related record
  2. You can simply filter out the table values so that they are only visible in Survey123 but not in field maps
  3. Append a value to the related table such as a text field with attributes stating "survey" and have it so that it does not display in field maps when you set the visibility fields to look for fields that don't have that value.

 

0 Kudos
SarahSaint-Ruth
Esri Contributor

Hi everyone,

There is a setting in the Map Viewer under Properties where you can disable editing per layer. If you select the parent layer, open the Properties there is a toggle to disable editing. To speed up editing in Field Maps I'd also recommend using the Related Record popup element on the parent feature:

SarahSaintRuth_0-1764949268027.pngSarahSaintRuth_0-1764949268027.png

Doc for ArcGIS Online 
Doc for ArcGIS Enterprise

Can I confirm whether the settings at the map level satisfy the requirements you have?

apgis16
Frequent Contributor

I have a hosted feature layer published from S123 Connect onto ArcGIS Enterprise. I have a URL parameter in the point layer pop-up on the web map for the user to click the link and edit the point as well as the related inspection table (repeated section) in the form. I want the popup to include past records. Is there a way to remove the "Add" button in the popups in field maps, since I only want them to access the S123 form through the link?

apgis16_0-1770651467260.pngapgis16_0-1770651467260.png

 

 

0 Kudos
ElisabethFenn
Regular Contributor

@SarahSaint-Ruth I have a similar set up in AGO where a survey123 survey edits related records on a hosted point layer. I would like the submitted surveys to be visible at the bottom of the popup, but I also only want new records added through the survey123 link in the popup, not through the add button in field maps. This seems like it should be a setting in field maps designer.

Edit: I need the parent HFL to be editable, but related tables to not be editable. There doesn't appear to be enough granularity in the settings to allow for this. I can only allow/disable editing at the HFL level, applying it to everything, not at the individual related table level.

0 Kudos
HeatherBell
Frequent Contributor

Hi Sarah, I have tested our layer and this does work as expected and replaces what was previously possible in map viewer classic. Thank you for pointing it out.

1. We would also like to constrain the editing capabilities in this way but through the layer settings, not just in the map. Otherwise, we may find that some of our users open up the layer in their own webmaps and are able to edit the parent layer that way.
2. It would be useful to be able to constrain the editing to happen only through apps that are configured such as Fieldmaps in order to ensure that the data is consistent and uses calculations that are set in the form for example. 

Thank you very much, 

GIS Analyst @ The Rivers Trust
0 Kudos