How to remove the "Canceled" State Choice from the list view in the incident table
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
8 hours ago - last edited 7 hours ago
Hi All,
How to remove the "Canceled" State Choice from the list view in the incident table:
This choice has already been removed from the Selected slushbucket and doesn't appear on the form but still appears in the list view...
This Choice is inactive:
Thank you in advance for your suggestions on what else could I check.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
7 hours ago
I believe even if you inactivate that choice, it would still be available for selection in the filter condition.
that's OOTB behavior.
💡 If my response helped, please mark it as correct ✅ and close the thread 🔒— this helps future readers find the solution faster! 🙏
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
7 hours ago
Hi @kandulek ,
You can use below onCellEdit client script, this will allow any change from list view except cancel.
Field Name: State
function onCellEdit(sysIDs, table, oldValues, newValue, callback) {
var saveAndClose = true;
//Type appropriate comment here, and begin script below, you need to replace 8 with value of cancel you have in your instance
if(newValue == '8'){
alert("You cannot change this status from the list view"),
saveAndClose = false;}
}
callback(saveAndClose);
If you found my response helpful, could you please mark it as ‘Accept as Solution’ and ‘Helpful’? This small action goes a long way in helping other community members find the right answers more easily and supports the community.