We've updated the ServiceNow Community Code of Conduct, adding guidelines around AI usage, professionalism, and content violations. Read more

How to edit Catalog Item Variables in RITM after submission?

samuelbingham
Tera Contributor

I have a catalog item with two variables and I want to be able to change them in the RITM after the submission. Can someone inform me on how to do this. I even deactivated the OOTB client script that makes variables read only.  I created a onLoad catalog client script. Code below:  

function onLoad() {
    g_form.setVariablesReadOnly(false);


}
2 REPLIES 2

Dr Atul G- LNG
Tera Patron

Hi @samuelbingham 

 

Changing variables after RITNM submission is not a good practice, it means, you are changing the end-user chokies without tell to end users.

 

So dont do this mate, it is violation of the process too. 

*************************************************************************************************************
Regards
Dr. Atul G. - Learn N Grow Together
ServiceNow Techno - Functional Trainer
LinkedIn: https://www.linkedin.com/in/dratulgrover
YouTube: https://www.youtube.com/@LearnNGrowTogetherwithAtulG
Topmate: https://topmate.io/dratulgrover [ Connect for 1-1 Session]

****************************************************************************************************************

sujitha16
Kilo Patron

@samuelbingham By default in OOB, the Variable editor client scripts are set to "False" only. In that case, it should allow to edit the variables.

 

May I know the reason why you have created the catalog client script separately again?

 

Is it specific to a catalog item or for all? 

 

Please mark this as helpful and accept it as a solution if this resolves your query.

Thanks,

Sujatha V.M.

Please mark this as helpful and accept it as a solution if this resolves your query.
Sujatha V.M.