Quantcast
Channel: Microsoft Dynamics CRM
Viewing all articles
Browse latest Browse all 154803

Forum Post: Expand/Collapse Tab based on stage of Business process flow

$
0
0
Hi experts, I have 3 stages in my BPF identify, research, and resolve. I would like to expand and collapse the tabs labelled General, Case Relationships, and Associated Knowledge Records. I would like collapse the General tab when the research stage is active and collapse the Case Relationships tab when the resolve stage is active. I am using the following code to test the requirement, but its not working: function HideShow() { var stage = Xrm.Page.data.process.getActiveStage().getName(); if (stage == "identify") Xrm.Page.ui.tabs.get("CASERELATIONSHIP_TAB").setDisplayState('expanded'); else if (stage == "research") Xrm.Page.ui.tabs.get("CASERELATIONSHIP_TAB").setDisplayState('collapsed'); } Please suggest changes that I can make to the code. Thanks, Jon

Viewing all articles
Browse latest Browse all 154803

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>