Quantcast
Channel: Microsoft Dynamics CRM Forum - Recent Threads
Viewing all articles
Browse latest Browse all 46379

hide web resource from form's header using javascript

$
0
0

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);

}


Viewing all articles
Browse latest Browse all 46379

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>