How to Show quantity option in catalog item if the IT checkbox variable is true
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎11-06-2023 09:51 PM
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
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎11-06-2023 10:17 PM - edited ‎11-06-2023 10:18 PM
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