Inactive choices still visible on Portal when using list collector with question_choice

Abbie2
Tera Contributor

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?

Abbie2_0-1675359399612.png

Abbie2_1-1675359529908.png

Abbie2_2-1675359579947.png

 

 

 


Thanks

Abbie

2 REPLIES 2

Henry Steele
Tera Contributor

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. 

beccintech
Tera Contributor

@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.

beccintech_0-1731470452183.png