Hi,
Can anybody please tell how to hide/show header field using javascript in CRM 365
I have used below code
function showhide() {
var relation = Xrm.Page.getAttribute('customertypecode').getValue()
var showTab = false;
var showSection = false;
if (relation == 1) {
showTab = true;
showSection = true;
}
Xrm.Page.ui.tabs.get('ADDRESS').setVisible(showTab);
Xrm.Page.ui.tabs.get('Summary').sections.get('Section').setVisible(showSection);
}
But it is not working..
TypeError: Cannot read property 'setVisible' of null at showhide





