Hi
I'm new to javascript and I'm trying to add a javascript to my contacts form that hides the tab "Partner Details", i have added the following javascript but get an error on form load:
function HidePartnerTab()
{
var a = Xrm.Page.getAttribute("cf_partnerpropartner").getvalue();
if(a==No)
{
Xrm.Page.ui.tabs.get("Partner Details").setVisible(false);
}
else
{
Xrm.Page.ui.tabs.get("Partner Details").setVisible(true);
}
}
Can anyone tell me where I have went wrong? Any help would be greatly appreciated
*This post is locked for comments