Join the #BuildWithBuildAgent Challenge! Get recognized, earn exclusive swag, and inspire the ServiceNow Community with what you can build using Build Agent.  Join the Challenge.

make filed Readonly in business rule

venkatrajesh
Tera Expert

in client side we can achieve this byusing : g_form.setReadonly('impact'',true) or else UI policy action but in

server-side script   business rule   i have tried as below

current.setReadonly('impact',true);

but not working

can any one have a idea?

5 REPLIES 5

Kalaiarasan Pus
Giga Sage

Business rules are database triggers and are used to perform a database operation usually on the insert/update/delete/display of record.



If you want to control the access to the field. make use of Access control as it is the best way to do this.


This will take care of field's accessibility both at the server and form level.