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.

How to set fields as Read only

shaik_irfan
Tera Guru

Hello Everyone,

I have a requirement where i need to set list of fields as Read only:

1.Number

2.Type

3. Program

By configuring dictionary of the field i can set Type & Program as read only but i unable to set Number field as Read only.... I dont know whether it is a Best practice or not, can anyone please guide me the best practice to set read only for above fields

1 ACCEPTED SOLUTION

Can i know the reason why you are going with Client Script.



In case its requirement, then go ahead with Onload client script and write the code as :---- g_form.setReadOnly("field_name",true);



But I would still suggest go ahead with UI policy.


View solution in original post

10 REPLIES 10

Thanks Dave!



I got it.