Can you apply client script to order guide variables?

gregmc83
Kilo Guru

Is it possible to apply a client script to a variable on an order guide much in the way you can apply a Catalog Client Script. 

We ask for a Cost Centre on all orders for HW, and have it set so that it has to be 10 numeric characters. This works fine on the individual Catalog items which exist in the Order Guide but the Order Guide itself doesn't alert. 

Can it be set on the Order Guide as well as the Catalog Items? 

I tried to set one up but you can't stipulate the field to check. 

1 ACCEPTED SOLUTION

Anurag Tripathi
Mega Patron
Mega Patron

Hi Greg,

 

Yes you can apply client scripts to variables. Its called Catalog client scripts rather than just client script but is pretty much the same thing in usage and execution.

 

You can even add it on the order guide by configuring the related list

 

Read more here:

https://docs.servicenow.com/bundle/kingston-application-development/page/script/client-scripts/concept/c_CatalogClientScriptCreation.html

-Anurag

View solution in original post

2 REPLIES 2

saurav1
Kilo Expert

Hello,

Yes it is possible to apply client script on order guide variables.

PLEASE HIT LIKE AND MARK HELPFUL if found useful.

Anurag Tripathi
Mega Patron
Mega Patron

Hi Greg,

 

Yes you can apply client scripts to variables. Its called Catalog client scripts rather than just client script but is pretty much the same thing in usage and execution.

 

You can even add it on the order guide by configuring the related list

 

Read more here:

https://docs.servicenow.com/bundle/kingston-application-development/page/script/client-scripts/concept/c_CatalogClientScriptCreation.html

-Anurag