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
  • 27,064
  • 61
  • 75
  • 116
Leo
  • 147
  • 7

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.

Pedro Azevedo
  • 163
  • 1
  • 6
  • however, is it possible to do that the tab will be dependent of the content!? I mean, it the content is in a tab then the tab'll be "expanded" and if it isn't the the tab will be "collapsed" – Leo Mar 21 '13 at 09:32
  • Which content are you talking about? It's different accessing inside an Iframe or a control of crm form. But it's possible. – Pedro Azevedo Mar 21 '13 at 10:46
  • by content I mean, attached files for example – Leo Mar 21 '13 at 11:14
  • You want see the content of a attached file? This i think you can't. You can depend of a field in CRM Form or a field in a IFrame – Pedro Azevedo Mar 21 '13 at 11:18
-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.

  • This answer appears to have submitted before you made your recommendations. In it's current form it appears to be primarily commentary. – Ramhound Jul 28 '21 at 13:59