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.

Variable set is hiding when submitting from Order guide

SS1510
Tera Contributor

I have an order guide, in which 2 catalog item are there.  one is pc purchase and other is new hire. When i submit from order guide then a variable set in pc purchase should be visible on ritm . When i submit pc purchase standalone then that variable set should not visible on ritm. It is working fine in platform view . But on service portal in ritm the variable set is not hiding.

For that i have applied client script on ritm

SS1510_0-1763715706764.png

Does anyone has any idea?

14 REPLIES 14

@Ankur Bawiskar 

 

Could you please confirm where this script i have to apply?
I have applied on catalog client script and check the 'applies on catalog item view' and 'applied on requested item' true. But still in RITM record on portal when submit from order guide, the variable set is not showing. It should show

@SS1510 

yes applies on catalog item

did you add alert and see?

if it's not going inside IF then some other script is hiding it

share both of your client scripts screenshots

💡 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  ||  9x ServiceNow MVP  ||  ServiceNow Community Leader

@Ankur Bawiskar 

SS1510_0-1763725863728.png

when i am submitting from order guide then also it alert is coming and hiding the variable set

@SS1510 

Sorry but we don't have access to your instance so you need to debug from your side.

why line 5 is added? it's not in my script I shared above

💡 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  ||  9x ServiceNow MVP  ||  ServiceNow Community Leader

@SS1510 

Hope you are doing good.

Did my reply answer your question?

💡 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  ||  9x ServiceNow MVP  ||  ServiceNow Community Leader