Hide/remove option

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-15-2025 02:34 PM
Hello!
I have a variable set called "data_options" that has variable called "choice" which contains 7 choices. The variable set used by 3 service catalog item (A,B,C). We need to hide one of the options from the choice variable for catalog item "A". I tried client script but it did work. Any idea?

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-15-2025 05:27 PM
@sparkles Please try the following script.
function onLoad() {
g_form.removeOption('choice', '5'); //No need to dot walk to the choice field via variable set. It is directly available.
}
Hope this helps.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-15-2025 06:18 PM
Hi @Sandeep Rajput, thanks for your reply. I tried your solution and it didn't work so I thought I need to dot walk. One thing I forget to mention that the choices come from another table.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-15-2025 09:46 PM

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-16-2025 06:21 AM