How to display/hide related list UI Action in SOW using Script
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎05-29-2024 01:29 AM
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎05-31-2024 08:39 AM
@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