Catalog Items

parul_gupta05
Tera Contributor

In ServiceNow, when you add a Catalog Item to the cart, the onLoad client script does run again in the cart view. How to prevent onload script running in cart.

3 REPLIES 3

GlideFather
Tera Patron

Hi @parul_gupta05,

 

could you please be more specific? add a screenshot or two... it's not very clear to me

———
/* If my response wasn’t a total disaster ↙️ drop a Kudos or Accept as Solution ↘️ Cheers! */


I have a catalog item where some variables are hidden using an onLoad client script. But when I add the item to cart, the same onLoad script runs on the cart view and hides those fields again. I want those fields to remain visible in the cart view. How can I handle this?

I have a catalog item where some variables are hidden using an onLoad client script. But when I add the item to cart, the same onLoad script runs on the cart view and hides those fields again. I want those fields to remain visible in the cart view. How can I handle this?