Hide Choices based on field value in List View in Workspace
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
yesterday - last edited yesterday
Hi Everyone,
I need some help with hiding/restricting specific choices in a field.
I have a Type field on the Exception table with two choices: Open and Closed. I also have a Status field with four choices: 1, 2, 3, and 4.
My requirement is that when Type = Open, the Status choices 1 and 2 should not be visible or selectable for the user. Only the other Status choices should be available.
There is a list configured in Workspace where users can see the Exception records, and they need to update the Status field using inline/cell edit from the list.
I tried implementing this using a on Cell edit Client Script, but it is not working as expected, and I am unable to hide the specific Status choices from the dropdown during inline editing.
Has anyone implemented a similar requirement in ServiceNow on cell edit script What would be the recommended approach to hide or restrict specific choice values based on another field's value?
Any guidance or examples would be greatly appreciated.
Thanks in advance!