Inactive choice value, filters, reporting

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎06-21-2011 01:07 AM
Dear all,
We have recently added a new choice value to the "contact_type" field of incidents.
We have made this choice value "inactive" so that users cannot select it manually, but it can still be set through scripts.
However this also makes it non selectable when creating a list filter or a report filter.
The workaround is to go to a list of incidents, show the "contact_type" column, find an incident with the new value, and do "show matching". Then, for a report, do "bar chart" in order to get to the report configuration string with the correct filter.
Does anyone know if there is some way of making inactive choice values available in filters?
Best regards,
David
- Labels:
-
Service Mapping

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎06-21-2011 03:57 AM
There isn't. The best thing to do is to set up a client script with 'g_form.removeOption' to remove that option from the choice list. Just be sure to only remove the option if it isn't the currently-selected option.
http://www.servicenowguru.com/scripting/client-scripts-scripting/removing-disabling-choice-list-options/
In addition, you'll probably also want to set up an ACL to restrict the list edit permission for that field so that the system is really the only thing that can set that value.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎07-08-2011 08:23 AM
Thank you Mark 🙂
After writing the post I actually figured out the same solution as you suggested but that day I could not come back and report it, then I forgot.