How to Show quantity option in catalog item if the IT checkbox variable is true

lucky24
Tera Contributor

Hi Team,

I have one IT checkbox variable on catalog item.

If this is true only that time I want show quantity option to user.

How can we achieve this.?

1 REPLY 1

Tai Vu
Kilo Patron
Kilo Patron

Hi @lucky24 

You can define an UI Policy and UI Policy Action to achieve it.

 

If you refer to the Quantity field on Requested Item. You can create an OnChange Catalog Client Script.

Sample below.

 

if (newValue == 'true') {
	g_form.setVisible('quantity', true);
	return;
}
g_form.setVisible('quantity', false);

 

 

 

Cheers,

Tai Vu