- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
3 weeks ago
I wanted to know how I can make the Pending state appear only on a specific item without showing up on the others. Is that possible?
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
3 weeks ago
You can create an onLoad Client Script on whatever table you're referring to:
function onLoad() {
if (g_form.getValue('cat_item') == '<sys_id of specific catalog item>') {
g_form.removeOption('state', -5);
}
}
Where cate_item is the name of the field that determines the 'specific item', and -5 is the value of the Pending choice.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
3 weeks ago
Use UI Policy Show/Hide the “Pending” Option
1) Create a UI Policy
Navigate to: System UI > UI Policies
Click New.
Conditions:
Table: Incident (or the table where you want Pending)
Condition: true (always apply when on Incident)
Save.
2) Add UI Policy Action
Under the UI Policy, click New in the UI Policy Actions related list.
Set:
Field name: state
Visible: Checked (if you want to show Pending)
Mandatory / Read-Only: as required
Save.
If my response has resolved your query, please consider giving it a thumbs up and marking it as the correct answer!
Thanks
Nayan Patel
IT ServiceNow Consult, ServiceNow ArchX
If my response has resolved your query, please mark it Helpful by giving it a thumbs up and Accept the Solution
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
3 weeks ago
please share some screenshots
what did you start with and where are you stuck?
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader

