I know this has been discussed before so I have attempted to do this using code I found online however the code seems to be broken and not working.
I'd like to hide a Tab on the Project form if Engagement Type is either Fundraising, Buy Side Advisory or Consulting; else show the tab. This is what I've got, any help appreciated:
function showHideProjectTabs()
{
engagementType = Xrm.Page.getAttribute(“new_engagementtypelookup”);
if (typeof (engagementType) != “undefined” && engagementType.getValue() != null)
{
if(engagementType.getText()==”Buy side advisory”)
{
Xrm.Page.ui.tabs.get(“Potential_Purchasers”).setVisible(false);
}
else if (engagementType.getText()==”Financial due diligence”)
{
Xrm.Page.ui.tabs.get(“Potential_Purchasers”).setVisible(false);
}
else if (engagementType.getText()==”Consulting”)
{
Xrm.Page.ui.tabs.get(“Potential_Purchasers”).setVisible(false);
}
}
}
*This post is locked for comments
I have the same question (0)