We're reclaiming inactive PDIs to keep them available for active builders. Learn what's changing, who's affected, and how to protect your work. Read More

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


✂-----Cutting-out-the---✦AI-noise✦---All-replies-written-and-vouched-for-by-GlideFather---

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?