Skip to main content
Answered

how to show/hide a tab using javascript

editSubscribe (0) ShareShare
ReportReport
Posted on by 102

I know this has been asked a million times but none of the jscripts have worked for me. 

(I'm a beginner)

I want to hide a tab and all sections within it. This will be based on an option set where I have edited the 'yes' and 'no'. 

The tab is called: Threatproducts

The field is called: opportunityorthreat

The tab has four sections: do I need to also include hiding these when I write the code or will hiding the tab they're in suffice?

I want it to hide when the field (on a different tab) is set to either 'yes' or 'no'. Would these be set to 'true' or 'false' in the code?