I would like to be able to set-up field rules in the Modern Designer to Show/Hide/Disable/etc. fields based on the form being in a read-only status (such as when it is viewed by one of several users the form is assigned to, but they haven't claimed the form yet).
An example of where this would be handy is custom HTML elements with buttons being hidden or disabled when the form is read-only. I have a form with a bunch of custom buttons, and I've noticed they still function despite the read-only state of the form.
I'm working on blocking the functionality via Javascript, since the LFForm object has values to indicate if the form is read-only, but it would be really nice to be able to do it via Field Rules.
Thank you!
**EDIT TO ADD**
I guess in the specific example I gave, the status is Disabled, not ReadOnly. But it is the same idea. It would be nice to dictate Field Rules based on the current status of the form.
The LFForm object has statuses including these: isCloud, isPreview, isReadonly, isDisabled, isPrint, isAnonymousUser, and isDraft. It would be nice if those same statuses were accessible for dictating Field Rules.