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

sushant007
Kilo Guru

can you please deactivate the UI policy first which you created for this and share the client script for making the field read only?


shraddha_agrawa
Tera Expert

PFB Simple client script i wrote to make the location field mandatory:



find_real_file.png


is should be   g_form.setReadOnly('location',true);


g_form.setReadOnly('location',true);


and you using setReadonly.


let me know if that works; else we can debug and sort it out