g_form.setVariablesReadOnly(false) not working for all variables in VEditor

Raphael Dizon
Mega Expert

Hello,

I have tried creating a client script in ritm table so that variables in VEditor won't be read only, I used g_form.setVariablesReadOnly(false); and it only made some fields editable but not all, why is that?

find_real_file.png

13 REPLIES 13

Ankur Bawiskar
Tera Patron
Tera Patron

Hi,

By any chance are those variables which were not made non-editable in some variable set?

Mark Correct if this solves your issue and also mark 👍 Helpful if you find my response worthy based on the impact.
Thanks
Ankur

Regards,
Ankur
Certified Technical Architect  ||  9x ServiceNow MVP  ||  ServiceNow Community Leader

Hi Ankur,

I haven't used a variable set in this particular catalog item

Thanks,

Raph

Hi,

Did you check any other onload or catalog ui policy for this

Also the client script has checkbox as true for applies to RITM view?

Regards

Ankur

Regards,
Ankur
Certified Technical Architect  ||  9x ServiceNow MVP  ||  ServiceNow Community Leader

Hi,

I used Client Script in RITM table and not Catalog Client Script since there is a client script in the RITM table that makes the VEditor read only. I tried setting the script that makes the veditor read only to inactive and it only made some variables editable but not all.