- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-08-2024 05:22 AM
Hi All,
I have a requirement where i need to hide 1 option from the variable dropdown options and it is (inactive=true) in the instance, when i try it within the instance it is working fine. But the catalog item when opened from portal is still showing up the inactive option.
How to achieve this?
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-08-2024 05:29 AM
Hi @phr
create onLoad client script
The standard way is to clear all options and add only those required based on conditions.
To clear all options use
g_form.clearOptions('<<fieldName>>');
To add Options use
g_form.addOption('<<fieldName>>' , '<<value>>' , '<<label>>' , '<<sequenceNumber>>');
Thanks
dgarad
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-08-2024 05:29 AM
Hi @phr
create onLoad client script
The standard way is to clear all options and add only those required based on conditions.
To clear all options use
g_form.clearOptions('<<fieldName>>');
To add Options use
g_form.addOption('<<fieldName>>' , '<<value>>' , '<<label>>' , '<<sequenceNumber>>');
Thanks
dgarad
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-08-2024 05:40 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-08-2024 05:48 AM - edited 05-08-2024 05:55 AM
Hi @phr
Please mark it as correct and helpful.
Thanks
dgarad