HI,
I have a form with multiple tabs let's call them tab1 and tab2. In tab1 I have tab1_field1 and it tab2 2 if have a number of tab2_fieldx
I want to hide tab2 entirely when tab1_field1 = xyz.
I have set a conditional state for tab2 (the tab field itself) but unfortunately the tab always appears.
I have also set, the exact same way, conditional states for tab2_fieldx and wthey behave as expected, i.e not displayed when tab1_field1 = xyz
So my conditions look alright.
When I look into the source of the page though I notice that what's actually displayed is the link to my tab2. There is a link with href=#tab2 but the element with id tab2 is actually not a child of that a link element so I suspect that's why the link is still displayed even though the tab2 itslef is not visible.
I hope it makes sense.
I'd imagine javascript can help here can I use "stuff" on the tab2 field plugin definition (under storage) to that effect?
I have tried that too but was unsuccessful.
Help appreciated.
Thanks.
Xav.