Hi All,
Thank you in advance for your help on this. I have been combing through the forums and found several answers related to my situation but they weren't helpful. Below is the code in question and I don't see why this error should be coming up. I am using CRM 2013 Online and while I changed and deleted a couple of fields, as well as re-purpose an existing sub-grid, I did not change the name of any of the tabs?
function onLoad()
{
if (Xrm.Page.getAttribute("customertypecode").getValue() != null)
{
switch (Xrm.Page.getAttribute("customertypecode").getText())
{
case "Agent":
hideTab("Agent",true);
hideTab("Producer",false);
break;
case "Producer":
hideTab("Agent",false);
hideTab("Producer",true);
break;
case "Dealer":
hideTab("Agent",false);
hideTab("Producer",true);
break;
default:
hideTab("Agent",false);
hideTab("Producer",false);
break;
}
}
}
function hideTab (tabName, visible)
{
Xrm.Page.ui.tabs.get(tabName).setVisible(visible);
}
*This post is locked for comments
I have the same question (0)