Omitting the new button based on filter conditions on a list view
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-03-2024 01:05 AM
I'm wanting to include the new button on the list view but only if it meets the conditions based on the filter conditions in a list view:
In this example, I want to show the New button only for this specific list or page. Does anyone know how I would need to do that?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-03-2024 01:15 AM - edited 07-03-2024 01:18 AM
Hi,
Right click on the list header -> Configure -> List Control.
You will find Omit New Condition field. Add the condition here and test.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-03-2024 01:20 AM
Here are script examples for Omit New Condition field
Advanced list control with scripts (servicenow.com)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-03-2024 01:22 AM
Hi @Anurag Tripathi How do I add that condition to the Omit New Condition. The query would be:
u_section=Standard
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-03-2024 01:23 AM
Check this, here are examples
Advanced list control with scripts (servicenow.com)
Eventually your script needs to return true or false.