Cry about...
Dynamics CRM 2011 How To

How to hide or show a tab using JavaScript

Dynamics CRM 2011 forms are organized in tabs. Each tab contains sections which in turn contain fields.

The "Tab Properties" dialog (which is accessible inside the form designer of Dynamics CRM 2011) lets you specify whether a tab is visible (or hidden) by default.

By adding JavaScript to an event handler you can hide or show a tab in code. You need to know the name of the tab, then to show the tab is simply:


or to hide the tab:


Be sure to substitute the name of the tab in the above (replacing "tab-name" with the name of your tab).

You can also show and hide sections and fields, see:

These notes have been tested with Microsoft Dynamics CRM 2011, and may apply to other versions as well.

About the author: is a dedicated software developer and webmaster. For his day job he develops websites and desktop applications as well as providing IT services. He moonlights as a technical author and consultant.