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 all fields readonly based on state

VSN
Tera Expert

Hi  All,

I have a requirement, Below are the condition:

1.if user has program_manager and project_manager roles 

2. and state is in progress then all the tables is read only for the above users.

 

i have written onload client script, but it is not working.

siva62_0-1677845916059.png

 

9 REPLIES 9

manjusha_
Kilo Sage

@VSN 

 

1.If you want to make all the table fields read only when state is in progress then you should go with ACL

2.Write a table.* acl of type read 

3.In condition ,specify state is in progress 

4.in roles specify above roles-project_manager,program_manager

 

Thanks,

Manjusha Bangale

 

i have followed the same process which you shared. but it was making all fields hiding.

@VSN that should be write ACL not read

If my inputs have helped with your question, please mark my answer as accepted solution, and give a thumb up.
Bharath Chintala

Read acl created and added above roles in the roles section and in the conditions state is progress.