Read-only field - which panel and options to use?

Could someone please explain this “read-only” function?

The initial panel, if selecting the “readonly” state shows a condition field. I set this with a formula to look at the user role by API, but I’m unsure what this does differently than the second panel where I can also set the “read-only” field via a formula.

Ultimately if the user is 1 of 2 roles (this is easy via formulas) the field needs to be read-only.

Screen Shot 2023-11-16 at 6.18.20 PM

Screen Shot 2023-11-16 at 6.20.30 PM

Hi Matt, the second option at the input field level allows you to set the field as editable or read-only. If it is read-only, the user will not be able to edit any existing value or enter a new value into the input field. It will be in “non-editable”, display mode.

This property calls for a boolean, true/false value; you can set it through a variable.

Thank you. Yes, this makes sense. I did manage to get the ‘read-only’ function to operate IF a user role is one which should not have editable access.

Thanks!