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 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
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. 

*************************************************************************************************************
If my response proves useful, please indicate its helpfulness by selecting " Accept as Solution" and " Helpful." This action benefits both the community and me.

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/atul_grover_lng [ Connect for 1-1 Session]

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

Sujatha V M
Kilo Patron
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.