not able to make read only a reference type field

shraddha_agrawa
Tera Expert

Hi All,

I am required to make a field named "Location" as read only on the sc_request form.

For which, I have written the UI policy on the form and also the onLoad Client Script , none of which is making the field Read Only.

Can you please help me out to make this field Read only.

find_real_file.png

Thanks

1 ACCEPTED SOLUTION

shraddha_agrawa
Tera Expert

Hi Siddharta,



After the checking the "Read only" check box in the dictionary override below "Override read only" . I am able to make the location   field read only for the sc_request table.


i hope this would not make the filed read only globally.



Thanks Shraddha


View solution in original post

13 REPLIES 13

shivam_singhal
ServiceNow Employee
ServiceNow Employee

    Screen Shot 2017-12-05 at 4.55.08 PM.png


1. Create a UI Policy on the 'sc_req_item' table as shown above



Screen Shot 2017-12-05 at 4.55.35 PM.png



2. select the Location.



Screen Shot 2017-12-05 at 4.56.18 PM.png


3. Here is the output




Don't forget to select the correct answer.


shraddha_agrawa
Tera Expert

Thank you All for the support. I am able to make the field Read Only just by right clicking on the field and through configure variable I have made the Read Only check box to TRUE.


HI Shraddha,



I see the field that you wanted to make readonly is Location, which as per my knowledge is a task table field.



If you directly right click and configure the read only check box true , it would make the location field readonly globally. If this was your requirement then fine.



But if you want location filed to be read only on request table I suggest to use dictionary override.



You may find the below links useful


http://wiki.servicenow.com/index.php?title=Dictionary_Overrides#gsc.



Please like or mark correct based on the impact of the response.


Hi Siddharta,



Thank you so much for the notice, but i am not able to achieve it through dictionary override.



find_real_file.png



Regards, Shraddha


shraddha_agrawa
Tera Expert

Hi Siddharta,



After the checking the "Read only" check box in the dictionary override below "Override read only" . I am able to make the location   field read only for the sc_request table.


i hope this would not make the filed read only globally.



Thanks Shraddha