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

Uncaught TypeError: Cannot read property 'setVisible' of null

$
0
0

Hi,

I have created a button using HTML web resource then trigger some event on that button like hiding tabs, sections and grid.

below is the code:

parent.Xrm.Page.ui.controls.get('Select_Address').setVisible(false);
parent.Xrm.Page.ui.tabs.get("general").sections.get("general_section_5").setVisible(false);

But i am getting error: Uncaught TypeError: Cannot read property 'setVisible' of null.


The above code is working fine in CRM 2016 but when i was in CRM 2015 MS released some patches that's why it is not working since.Please help.

 

Note: section and tab names are correct.


Viewing all articles
Browse latest Browse all 46379

Trending Articles



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