Enable / disable fields on form load by user role

Is there a way to deactivate an input field when a form is loaded by a particular user role? For example, I have a ‘Reviewer Comments’ input field that I would like to disable when the form is created/updated by an Author role. However, when a Reviewer loads the form, I would like the field to be editable.

Also, is there any scripting documentation I can refer to? Thank you!

Hi, it is not possible yet. The only option I see is to make a validation with scripting to prevent that.

Yes, that was my initial approach as well. Was hoping I had missed out on a more elegant way to go about this.

Not yet, but after the workflow system that will land soon I will have more time for stuff like that.