Hi,
I've developed some JavaScript to show a tab if the 'parent worksheet' Field does not contain data. Else show the tab. I must have made a mistake because I keep getting Script errors. Any help would be appreciated.:
function hideComponent()
var parentWorksheet = Xrm.Page.getAttribute("new_parentworksheet").getValue();
if(parentWorksheet == null)
{
Xrm.Page.ui.tabs.get("tab_11").setVisible(false);
}
else
{
Xrm.Page.ui.tabs.get("tab_11").setVisible(true);
}
I've set this to run onLoad of the Form, referencing the function as 'hideComponent'
*This post is locked for comments