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 use Catalog onchange client script in service portal

Pravin11
Tera Contributor

Hi Expert,

 

Could you please help me for the below requirement,

 

I have a requirement where we have build 2 options ( 1. Vip User, 2. Non VIP user) using widget in catalog item.

The Non VIP user option should hide from from catalog item form when we change the Requested for ( requested_for) field value to VIP user.

How can we apply the onchange client script functionality in Widget.

 

1 REPLY 1

Amit Verma
Kilo Patron
Kilo Patron

Hi @Pravin11 

 

Below posts could be helpful :

https://www.servicenow.com/community/developer-forum/how-to-run-catalog-client-scripts-in-service-po...

https://www.servicenow.com/community/now-platform-forum/interact-with-service-portal-widget-in-catal...

 

Thanks and Regards

Amit Verma


Please mark this response as correct and helpful if it assisted you with your question.