How to hide an incident state (canceled) from the list view?

Jesus Nava
Tera Guru

Hello experts, please I need your help, how can I hide the choice canceled from the "state" dropdown from the list view?

find_real_file.png

Thank you

1 ACCEPTED SOLUTION

@Jesus Nava same script i have used & tested , able to edit on list view and change any state except cancel, working code on my PDI

function onCellEdit(sysIDs, table, oldValues, newValue, callback) {
    var saveAndClose = true;
    if (newValue == 😎 {
        alert("You cannot change the state to Closed from the list view.");
        saveAndClose = false;
    }
    callback(saveAndClose);
}

View solution in original post

11 REPLIES 11

Palak Gupta
Tera Guru

Hi there!

Do you want to hide this drop down value only for list view or also for form view?

Regards,

Palak

Hello Palak, 

I already hid it from the form view using a UI policy but cannot find a way to hide it from the list view,

Regards

Hello,

If you don't need "Cancelled" option you can make this choice as "Inactive-true" for incident table record.

find_real_file.png

is there a way just to hide it from there? the issue is that if I set it as inactive it will also be inactive in the form, I just need to hide it from the list view

Regards