- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-07-2025 02:53 AM
I need to hide 'New' button present in catalog task related list for RITM for some specific catalog items.
I tried omit new condition script to hide it, but as there are not catalog task present, it's not querying
Code:
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-07-2025 03:26 AM
it should be this
if (parent.cat_item.sys_id == '2c413a5b831312108b59f7c6feaad35d' ) { //catalog item sys_id
answer = true; // omit
} else {
answer = false; // hide
}
If my response helped please mark it correct and close the thread so that it benefits future readers.
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-07-2025 03:26 AM
it should be this
if (parent.cat_item.sys_id == '2c413a5b831312108b59f7c6feaad35d' ) { //catalog item sys_id
answer = true; // omit
} else {
answer = false; // hide
}
If my response helped please mark it correct and close the thread so that it benefits future readers.
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-07-2025 04:08 AM
I could see you marked my response as correct earlier and now it is not.
Did my script not work for you?
It should hide New button if it's catalog item with sysId "2c413a5b831312108b59f7c6feaad35d".
If my response helped please mark it correct and close the thread so that it benefits future readers.
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-07-2025 06:01 AM
It did work. thanks