Inactive choice value, filters, reporting

dmartinc
Tera Expert

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

2 REPLIES 2

Mark Stanger
Giga Sage

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.


dmartinc
Tera Expert

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.