Hi,
I have several tabs on the record view:
Switching between them works as expected. However, I need to conditionally hide one of the tabs (GUS). To achieve this, I started with adding the following entry to the viewConfigDiff:
{ "operation": "merge", "name": "EvGusTabContainer", "values": { "visible": false } }
At first glance, it seems to work correctly because the GUS button actually disappears. Unfortunately, as a result of this operation, the content of the side panel stops corresponding to the selected button. As you can see in the screenshot below, instead of showing the attachments, it displays the content from the VIES tab.
Is there any way to deal with this issue? If I remove the GUS tab instead of just hiding it, everything works as expected — but I need this to happen dynamically (for example, depending on user permissions or other circumstances), binding a view model attribute to "visible".
Like
Not sure why the panel would be showing the wrong one as I think I've done tab hiding like this before, but another approach to hiding tabs that might not have the same issue is using Page Business Rules if you're able? They're less versatile, but are no-code, and may avoid this issue. You'll find these tabs under the "Layout element" option for "Hide elements":

