How to Hide a Related List Tab on the Workspace When There Are No Records for that List

EmilioGuaj
Tera Contributor

Similarly to how you can use a list control to hide a related list tab when there are no records matching, how can you do the same but for the workspace view. The list control only works in the back-end view, but I haven't found an easy solution when dealing with the workspace view

2 REPLIES 2

pr8172510
Giga Guru

Hi,

Yes, this can be achieved in Workspace using UI Builder by applying a visibility condition on the Related List tab.

Since List Control only works in the platform UI, for Workspace you need to use the data resource “SOW Get Related List Configuration”.

Steps:

  1. Open UI Builder → Service Operations Workspace
  2. Navigate to the Record page
  3. Duplicate the OOTB variant (to make it editable)
  4. Select the “Related Records Tab” component (not the inner related list)
  5. Go to Configure → Visibility
  6. Add the below condition:
@data["SOW Get Related List Configuration"].results.length > 0

Result:

  • If no related records exist → the tab is hidden
  • If records exist → the tab is visibleScreenshot 2026-04-16 121143.png

This approach ensures the tab itself is dynamically controlled based on data availability in Workspace.

Sorry can you explain the @Data[] part. I'm doing this in a custom application where I currently have 2 related lists on the workspace record page view. One tab of the related list can be displayed at all time, but the other tab we would like to hide when there are no related records. I believe what you suggested will hide all related tabs, which is why this is difficult. I attached a pic so you can see these lists are both embedded in a repeater. 

EmilioGuaj_1-1776367082148.png

 

EmilioGuaj_0-1776366962990.png