Remove an option from select box variable in the catalog item form

Eli Guttman
Tera Guru

Hi,

 

I have a form, with a select box variable. the option is this select box is defined question choice.

 

Now, one of the values is no longer relevant, and i would like to deactivate it - meaning i don't want it to appear anymore for users, but i also don't want to delete as a value.

 

what is the best way to remove it in the catalog item form?

 

Thank you!

1 ACCEPTED SOLUTION

Mark Stanger
Giga Sage

Unfortunately, there's not a built-in 'Active' flag for these.   I usually just end up deleting the choice but you could also add the choice to a separate, unassociated dummy variable just so you could keep it around but not have it visible.   Outside of that, you can remove the choices with client scripting but that's not really a good solution if you're doing away with the choice for good.



g_form.removeOption('duration', 'twelve_months');


View solution in original post

9 REPLIES 9

I don't know why.   Maybe Lawrence Eng can help us with that.


Hi Eli,



When you post discussion content, you have the option (on the initial content editor screen) to mark your discussion as a Question. In doing so, responses can then be marked as Correct or Helpful.



I went ahead and marked this thread as a Question and Mark's response as Correct.



thanks,


Lawrence


--


Online Community Program Manager, ServiceNow


Thanks Lawrence.   For what it's worth, it seems like there would always be a question and an answer in the support area of the site.   It seems counter-intuitive to have to mark it separately as a question.


I agree, and there's already an enhancement request open for that.


Thank you both!