Expand or Collapse Tab using javascript in Microsoft Dynamics CRM 2011

Posted: October 26, 2012 in CRM 2011, Jscripts

To Expand Tab

Xrm.Page.ui.tabs.get("<tabName>").setDisplayState("expanded");

To Collapse Tab

Xrm.Page.ui.tabs.get("<tabName>").setDisplayState("collapsed");
Advertisements
Comments
  1. Ezorif says:

    Lakshman,

    I Need to create a button with Ribbon Workbench, and within that button i need to set as expand and collapse fields in the form. Please send me the details how to write the code in mscrm using js and how to place js library files within it.

    send me to my mail id : Admin@ezorif.com

  2. jaykar says:

    Hi Lakshman,
    Could you please help me out to retrieve an account entity record using console application…

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s