Join the #BuildWithBuildAgent Challenge! Get recognized, earn exclusive swag, and inspire the ServiceNow Community with what you can build using Build Agent.  Join the Challenge.

How to hide UI Action Button conditionally on Workspace?

Dalma P_ll
Tera Contributor

Hi there, 

I would like to hide the 'New' button on the Catalog Tasks Form if the corresponding Requested Item is in closed state. Where can I add this condition to the UI Action so that the button is no longer visible on Agent Workspace?

I tried Action Exclusions but that made the button disappear on every task related to requested items. 

find_real_file.png

find_real_file.png

6 REPLIES 6

Gonzalo_S
Tera Contributor

Hi,

 

You can create your own "Related List Action" for the table you need with specific conditions.

Steps:

  • Go to Workspace > Related List Actions
  • Create a new record (you can use an OOTB record in order to copy some of the fields).
  • Save the record and you will see a related link called "Advanced View".
  • In this advanced view you can see a new "Conditions" tab where you can add your specific condition.

I hope that helps!

 

Gonzalo

look