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

Variables are not appearing under Variables names drop down in Catalog client script.

Neelavathi M
Tera Contributor

Hi All,

 

Have to create onChange client script so ,under Variable name drop down, not able to see variables(there are 30) to choose , and it is a record producer.

 

Attached the screen shot refernce.

I just tried by creating new  single line text variable , i am able to see under drop down, not the older existing varibales, can anyone please suggest what is the cause for this issue.

 

Thanks in Advance, Appriciate your help.

 

 
 

 

10 REPLIES 10

Dr Atul G- LNG
Tera Patron

Hi @Neelavathi M 

 

https://support.servicenow.com/kb?id=kb_article_view&sysparm_article=KB0784994#:~:text=Resolution,th...

 

Resolution

You can fix the issue by adding the 'variable set' field to the form layout of the missing catalog item variable.  Then, delete whatever is being held in the 'variable set' field even though it's blank on the surface. Alternatively, you can select any other variable set, and then set the field to blank/empty.  

If multiple catalog item variables are affected, you may be able to 'set empty' the Variable Set field with a script. 

*************************************************************************************************************
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]

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

Hi @Neelavathi M 

 

Check the above link

*************************************************************************************************************
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]

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

Dr Atul G- LNG
Tera Patron

https://www.servicenow.com/community/servicenow-ai-platform-forum/issue-with-client-script-not-displ...

*************************************************************************************************************
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]

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

Ankur Bawiskar
Tera Patron

@Neelavathi M 

were you able to create and add other variable there earlier?

Are those variables active?

From when this issue started coming?

💡 If my response helped, please mark it as correct and close the thread 🔒— this helps future readers find the solution faster! 🙏

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