How to display/hide related list UI Action in SOW using Script

Srinivas_S
Tera Contributor

Hello Everyone!

I have a table called custom_table and one of the fields called u_refer has a reference to the task table.
custom_table is used as a related list which is having UI Action called Add.
My requirement is to display Add in custom_table only when opened from Incident and to hide when opened from any other table like problem or change. Here Incident should be parent table.

 

There is an OOTB condition to achieve this, but I am trying to have this configuration using script include.

Thank you
Srinivas

1 REPLY 1

pranitha_g
ServiceNow Employee
ServiceNow Employee

@Srinivas_S In the declarative action record for the created Add action.

Go to conditions tab in the record, in the script condition field call the script include. You can use the same condition of OOTB in script include. If the script include returns true, the action will be shown else hidden.

 

Please accept the solution or give a thumbs up if it answers your query.

Thanks,
Pranitha