This topic is locked
[SOLVED]

Hiding tabs based on field values

2/4/2022 4:59:54 AM
PHPRunner General questions
D
Dynamiccomp author

I have been tryng to figure out a way to hide a tab on the edit page, based of a field value.

I have looked at multiple posts on here, but none work for me whe ni try to put conditions in the code.

Here is what I want to do:

When field (Show Type) == Derby

Hide tab(3)

any ideas?

Sergey Kornilov admin 2/4/2022

Tabs are a part of UI, you can show and hide them dynamically using Tabs API in any Javascript event like Javascript OnLoad event:
Tabs API: hide

And to read any field value in Javascript OnLoad event you can use getValue() function.