Find your people. Pick a challenge. Ship something real. The CreatorCon Hackathon is coming to the Community Pavilion for one epic night. Every skill level, every role welcome. Join us on May 5th and learn more here.

Omitting the new button based on filter conditions on a list view

matthew_hughes
Kilo Sage

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:

matthew_hughes_0-1719993885535.png

 

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?

 

7 REPLIES 7

Anurag Tripathi
Mega Patron

Hi,

Right click on the list header  -> Configure -> List Control.

AnuragTripathi_0-1719994669618.png

 

You will find Omit New Condition  field. Add the condition here and test.

 

AnuragTripathi_1-1719994715206.png

 

-Anurag

Here are script examples for Omit New Condition field

Advanced list control with scripts (servicenow.com)

-Anurag

Hi @Anurag Tripathi How do I add that condition to the Omit New Condition. The query would be:

u_section=Standard

Check this, here are examples

 

Advanced list control with scripts (servicenow.com)

Eventually your script needs to return true or false.

-Anurag