Hi all
i dont know what is wrong in this code to show/hide a certain tab on CASE form , please help me.
TypeError: Cannot read property 'setVisible' of null
at showhide (hungerstation-sandbox.crm4.dynamics.com/.../new_showhidtabsoncase)
at eval (eval at RunHandlerInternal (hungerstation-sandbox.crm4.dynamics.com/.../ClientApiWrapper.aspx), <anonymous>:1:1)
at RunHandlerInternal (hungerstation-sandbox.crm4.dynamics.com/.../ClientApiWrapper.aspx)
at RunHandlers (hungerstation-sandbox.crm4.dynamics.com/.../ClientApiWrapper.aspx)
at ExecuteHandler (hungerstation-sandbox.crm4.dynamics.com/.../ClientApiWrapper.aspx)
at Mscrm.TurboForm.Control.CustomScriptsManager.$Dd_1 (hungerstation-sandbox.crm4.dynamics.com/.../formcontrols.js)
at Mscrm.TurboForm.Control.CustomScriptsManager.executeHandler (hungerstation-sandbox.crm4.dynamics.com/.../formcontrols.js)
at Mscrm.TurboForm.Control.CustomScriptsManager.executeHandlerByDescriptor (hungerstation-sandbox.crm4.dynamics.com/.../formcontrols.js)
at hungerstation-sandbox.crm4.dynamics.com/.../formcontrols.js
at hungerstation-sandbox.crm4.dynamics.com/.../global.ashx
the code is :
function showhide()
{
subjecttype = Xrm.Page.getAttribute("subjectid");
if (typeof (subjecttype) != "undefined" && subjecttype.getValue() != null)
{
if(subjecttype =="Content Upload")
{
//parent.Xrm.Page.ui.tabs.get("ContentUpload").setVisible(true);
parent.Xrm.Page.ui.tabs.get("general").sections.get("ContentUpload").setVisible(true);
}
else
{
parent.Xrm.Page.ui.tabs.get("general").sections.get("ContentUpload").setVisible(false);
}
}
}
and i am trying to hide/show the following circulated tab based on the selected subject.

*This post is locked for comments
I have the same question (0)