Working with tabs and sections

This recipe will show you how to work with tabs and sections on a form. You might have observed some bits of code in other recipes that allow you to hide a specific tab if a condition is not met. Here, we will analyze how to hide and show these form elements.

Getting ready

For the purpose of this demonstration, we will be looking at the Contact form we have been working on until now. Reuse the same solution you have used already, or if you want to start a new one, create a new solution.

How to do it...

First off, let's focus on working with the tabs. These form elements have the advantage of generating a link on the navigation, allowing a user to browse directly to a specific tab. They come in handy when you have a ...

Get Microsoft Dynamics CRM 2011 Scripting Cookbook now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.