How to hide Select box variable options.
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-16-2018 12:49 AM
5 REPLIES 5
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-16-2018 01:47 AM
Hi Sachin,
You can follow the below steps to achieve your requirement.
1. Create an 'Onload' catalog client script for your catalog item "Standard Laptop".
2. use the below script in the script section.
function onLoad() {
g_form.removeOption('variable_name','T&E');//this would hide T&E option for all users
}
Note: You cannot hide options in a select box similar to variables/fields in a form. Instead you have to use removeOption() & addOption() functions to show/hide necessary options in a select box.
Mark Correct if this solves your issue. Hit Like/Helpful based on the impact.
Regards,
Udhay