- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-30-2024 08:26 PM
Hello, does anyone know how to hide a related link based on a condition?
Example: If state is in progress, then this related link will not show up.
Solved! Go to Solution.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-30-2024 09:51 PM - edited 05-30-2024 10:05 PM
Hello,
-
Configure the UI Action:
- Name: Give your UI Action a descriptive name.
- Table: Select the table where you want the related link to appear (e.g.,
incident
). - Action name: Provide an action name (e.g.,
hide_related_link
). - Show Insert: Check this if you want the link to be available on new records.
- Show Update: Check this if you want the link to be available on existing records.
- Condition: This is where you'll add the condition to hide the related link.
Sample Condition Script
Here's an example condition script that hides the related link if the state is "In Progress":
// Check if the current record's state is "In Progress"
// Replace `state` with the actual field name if it's different
// Replace `2` with the actual value for "In Progress" if different
current.state == 'In Progress';
Regards,
Vaishnavi Lathkar
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-30-2024 09:35 PM
Hi @Blitz
Please follow below steps.
1. Go to UI action>>search for the name of related link.
2. Update condition part as 'state==2'.
Hope this helps you if yes accept it as solution and mark it as helpful.
Thanks.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-30-2024 09:46 PM
Hi @Blitz,
Right click on related link and it will open in different tab and set the condition as current.state=='2' || current.state=='2'. it depends on your requirement what state do you want hide.
Please accept my solution if it works for you and thumps up.
Thanks
Jitendra
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-30-2024 09:47 PM
Hi @Blitz ,
Your condition in the UI action determines when the UI action is displayed. In your case it sounds like you need something like this:
current.state == 'In-progress' (You can use the backed value)

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-30-2024 09:51 PM - edited 05-30-2024 10:05 PM
Hello,
-
Configure the UI Action:
- Name: Give your UI Action a descriptive name.
- Table: Select the table where you want the related link to appear (e.g.,
incident
). - Action name: Provide an action name (e.g.,
hide_related_link
). - Show Insert: Check this if you want the link to be available on new records.
- Show Update: Check this if you want the link to be available on existing records.
- Condition: This is where you'll add the condition to hide the related link.
Sample Condition Script
Here's an example condition script that hides the related link if the state is "In Progress":
// Check if the current record's state is "In Progress"
// Replace `state` with the actual field name if it's different
// Replace `2` with the actual value for "In Progress" if different
current.state == 'In Progress';
Regards,
Vaishnavi Lathkar