Inactive choices still visible on Portal when using list collector with question_choice
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-02-2023 09:39 AM
Hello
I have a variable on a catalog item by creating a multiple choice list, then changing it to a list collector and using the question choice option and within the reference qualifier, linking it to the sys_id of the multiple choice list.
The problem I am having is there are some choices which are set to inactive, but they are still getting pulled through to the portal.
How can I hide the inactive options from the portal?
Thanks
Abbie
- Labels:
-
Request Management
-
Service Catalog
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-23-2023 09:56 AM
Hi Abby,
Unsure if you were able to get the solution for your question but, by adding an additional reference qualifier to your variable, this should provide a sollution. It'll be different than your current one, as you'll need to now have a "javascript" qualifier at the beginning since you are going to be running serveral conditions against the variable.
Here's just an example of what you can do:
javascript: "question=409016081b3e6510a4a50f6e6e4bcb4d^inactive=false;"
You'll want to use your own sys_id for your implementation, but this should allow you to filter out any inactive choices you've marked.
Hope this helps.
Henry.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-12-2024 08:01 PM
@Abbie2 , This may help (or help others) but I had a similar issue with a catalog item that is part of an order guide. A question choice for a mandatory select box variable had been set to inactive but was still appearing as the default choice on the portal. The variable even had the include none option enabled, so --None-- should have been default. Here's how I fixed it:
- Open the order guide that includes the affected catalog item.
- Go to the 'Rule base' tab and find the catalog item with the affected variable.
- Open that Rule and look for the 'Item Variable Assignments' list at the bottom
- Open the item variable assignment record for the affected variable.
- Here you can either set active to false or select the desired default question choice in the 'value' drop down.