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

Show/Hide tabs and sections

$
0
0

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 


Viewing all articles
Browse latest Browse all 82002

Latest Images

Trending Articles



Latest Images