- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-07-2014 01:02 PM
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!
Solved! Go to Solution.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-07-2014 01:10 PM
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');

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-07-2014 01:34 PM
I don't know why. Maybe Lawrence Eng can help us with that.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-07-2014 01:40 PM
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

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-07-2014 01:43 PM
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.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-07-2014 01:54 PM
I agree, and there's already an enhancement request open for that.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-07-2014 01:43 PM
Thank you both!