Select to view content in your preferred language

Make entire feature read-only based on attribute condition

245
2
03-14-2026 07:29 AM
Status: Open
Labels (1)
Bud
by
Legendary Contributor

I have an AGOL Experience Builder app that uses a hosted Survey123 feature layer. In the app, I want a feature to be read-only in an editor widget if a certain attribute condition is true.

For example, if the feature is less than 15 minutes old (determined using an editor tracking field), then that means an AGOL scheduled task (TBD; limited to 15 min cycle) has not been run yet to copy the feature to a “record of original survey” archive layer. Since the feature has not been archived/copied yet (not true Esri archiving), I want to prevent edits until the feature has been archived. But I still want to see the feature in Experience Builder; I don’t want to hide it, I just want it to be read only.

2 Comments
DavidL
by

What about having 2 layers views based on the attribute you what?

In your example : one editable layer with all features >15 minutes old, and another one read-only, with the newest features?

Bud
by

@DavidL Yes, good idea. I was thinking something similar as a workaround.