Expand Collapse tabs using JavaScript in CRM

Hello everyone,

In this post I will share a JavaScript code snippet about how to Expand / Collaps tabs in CRM.

Expand a tab in CRM

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

Collapse a tab in CRM

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

 

I hope that you found this small post useful.

See you 🙂

Leave a Reply

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