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.