Select to view content in your preferred language

Attribute Rules in a Hosted Feature Layer / Field Maps

146
2
2 weeks ago
CASSIEANGERER
New Contributor

I am trying to incorporate attribute rules into field data collection workflows. I created a set of attribute rules at the geodatabase level and then published the gdb as a hosted feature layer in ArcGIS Online. When I added the layer to a web map and tested the attribute rules in Field Maps, the rules do not apply. Does anyone know a solution for this? Do attribute rules not work with hosted feature layers? If not, how can I use attribute rules in Field Maps? Any help is appreciated!

0 Kudos
2 Replies
CodyPatterson
MVP Regular Contributor

Hey @CASSIEANGERER 

Comment Shared from: https://community.esri.com/t5/arcgis-field-maps-questions/attribute-rules-in-field-maps-with-hosted-...

It appears that Field Maps may not entirely work with attribute rules when using a Hosted Feature Service, check out this post here:

https://community.esri.com/t5/attribute-rules-questions/can-attribute-rules-be-used-on-feature-servi...

It appears that the attribute rules take place in the GDB, and since Online cannot access a local GDB, an Enterprise GDB would be needed in an  Enterprise environment or similar.

Here is an article for Pro 3.5:

https://pro.arcgis.com/en/pro-app/latest/help/data/geodatabases/overview/share-datasets-with-attribu...

In this case, to automatically perform validation or checks in Field Maps, you may need to use the built in expressions in the Field Map editor to perform these actions!

Cody

EmilyGeo
Esri Regular Contributor

Hi @CASSIEANGERER

Attribute rules are not directly supported in hosted feature layers in ArcGIS Online. However, you can achieve similar functionality using other tools like forms, arcade expressions, and subtypes. 

There are lots of resources to walk you through setting up forms on the ArcGIS Blog site, like this article  https://www.esri.com/arcgis-blog/products/arcgis-online/mapping/smart-forms-arent-just-for-field-map...

Best, Emily

0 Kudos