
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-24-2018 06:37 AM
Hello,
I have been tasked with hiding an option in a multiple choice list. I found there was not an "Active" button to work with, so I started writing a catalog client script to do this. However, I am having difficulty getting this script to work.
For purposes of an example (and because I was going insane trying to get it to work on Friday), I went ahead and created a new catalog with a variable called "Choice Testing," a multiple choice list with options "Red", "Green", and "Blue"
Next, I created a catalog client script in order to remove the "Red" variable. According to this post, it is wise when using an "onLoad" client script to verify that the option is not selected by default in your script which is why the "If" statement exists.
Alas, after the script our friend "Red" still loads on the form.
I tried implementing the function "Disable Option" into my System UI -> UI Scripts in accordance with the post I referenced earlier. Unfortunately, this did not also work to hide the variable.
Can I get some pointers on how to make this work? Hopefully it is just some silly mistake on my part. Any help is appreciated!
Solved! Go to Solution.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-24-2018 07:06 AM
I believe removeOption() doesn't work for removing options from Multiple Choice type of variable. You can use it in Select Box type of variable.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-03-2025 03:44 PM
How is that a solution, and why was it marked as one? This is why we cannot have nice things.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-27-2018 01:49 PM
Asked them if it was cool and then just switched it to a select box. Thanks for your help Khushboo!

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-24-2018 07:05 AM

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-24-2018 07:14 AM
Hi Ravi,
Negative on adding the "else" to the end. Any other suggestions?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-24-2018 07:20 AM
I'm just curious. Why do you need to keep the option if you aren't going to display it? Not that it's any of my business, but I'm just trying to think of a reason.
thanks, Richelle