Update: Hiding CRM 3.0 Form Tabs

On July 17, 2006, in Customization, Dynamics CRM, by Mitch Milam

Here is an update to the very first article ever published on this blog:

Hiding a tab on a data entry form in CRM 3.0

The only side-effect of the technique outlined in that article, is if you hide a tab in the middle of the tabset, there is an awkward blank spot.

A couple of weeks ago I got into an email conversation with Jerry O'Sullivan about this issue and admited that I really didn't have any idea of a way to get around it.  Well, it turns out, James Wilcox, one of Jerry's clients, came up with the solution:

tab1Tab.style.display = 'none';

I could just kick myself. Of course that is the answer, just like I've written about in several articles dealing with form fields.

When you set an HTML element's display style to "hidden" it will insert it on the page in a non-viewable state.  It's still there, but you can't see it.

If you set the display style to "none" it is in effect, removed from the page.

 

Thanks to Jerry and James for the update and information.

 

Leave a Reply

Your email address will not be published. Required fields are marked *

*

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>