I'm currently working on a customization for the Activity page, and I need some help with dynamically showing/hiding tabs based on the activity type. Here’s what I need to achieve:
Hide the "Attachment" tab when the activity type is "Task."
Show the "Case Attachment" tab for tasks related to a specific case only (it should display attachments only for the selected case).
For all other activity types, the "Case Attachment" tab should be hidden, and the regular "Attachment" tab should be visible.
Essentially, I want the tab visibility to switch dynamically based on the activity type and the case involved. I’d appreciate any suggestions on how to implement this, whether through JavaScript handlers, custom logic, or any other method that can meet this requirement.
This can be easily implemented using business rules such as "Show/hide an element on a Freedom UI page." We recommend exploring this functionality on our academy.