2

In CRM 2011 I've a tab (drop-down), which has an Iframe or whatever.

Could i make it open by default if there is something inside and close by default if there isn't any data inside of this tab?.

Or, what if it's not an IFrame inside of tab, may be a web- resource

So, is there any way to do it?

fixer1234
  • 28,064
Leo
  • 147

2 Answers2

2

You want expand or collapse a tab in Onload of form, right?

So you have to use this function:

Xrm.Page.ui.tabs.get("tabname").setDisplayState('expanded');
Xrm.Page.ui.tabs.get("tabname").setDisplayState('collapsed');

The state of the tab is independently of the content.

-1

This is a pretty common question. Dynamics CRM was designed this way for a few reasons. First, this better supports a company that has contacts and accounts in various countries around the world. Second, the integration with Outlook requires the field to be a single line of text for the field to sync with Outlook contacts. This means there are drawbacks to changing the state/province field to a pick list or lookup and must weigh your options carefully. Here are my recommendations if you add this field.