Set a value visible

Rafael Batistot
Tera Sage

Hi team,

 

in the Incident table, when the state is close (6) all fields change to read only by default

But i want add a new String field (motive) that only user with role user_admin can write in this field even thar state is closed

i've tried by Business Rule, Client Scrip... some logic like 

if (adminRole) {
    current.setReadyOnly('u_motive', true);
}


But all my attempts were fail. 

 Thank you support

1 REPLY 1

Brad Bowman
Kilo Patron
Kilo Patron

You probably have a write ACL on the table when state = 6.  Create a new one for this field and the role and state condition.  It should override the table-level one, but these can be tricky to troubleshoot.