Hi @Josh Virelli - CloudPires - I have a case where I need a field within an application to be Read Only, unless they have a certain role, to be Mandatory. Using a UI Policy, i have it working when I have 1 role listed, but I'm unsure on how to write it for the 2nd role (where I need it to be mandatory. Lets say role is 'test_mandatory')...you have suggestions?

I've started with this:

function onCondition() {
if(g_user.hasRoleExactly('test_read_only'))
g_form.setMandatory('name', false);
g_form.setReadOnly('name', true);
}