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!
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:
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:
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
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