I add one web resource in form's header.Now based on field value i need to hide. i used the following way but its not working
Method 1 : Xrm.Page.ui.tabs.get("WebResource_name").setVisible(false);
Method 2 : var control = Xrm.Page.ui.controls.get("WebResource_name");
control.setVisible(false);
How can I achieve this ?
Add image in header ,
and I try by using the following code,
function test()
{
Xrm.Page.getControl("WebResource_123").setVisible(false);
}