Quantcast
Viewing all articles
Browse latest Browse all 79901

Hide/Show a Tab & Section

Hi, I have a few sections within a tab, based on a Selected Type I wanted to show sections from a tab. The following code doesn't show the second section

function hideShow() {

var selectedType = Xrm.Page.getAttribute("wf_type").getValue();
if (selectedType == 3 ) {

Xrm.Page.ui.tabs.get("General").sections.get("Section_1").setVisible(true);
Xrm.Page.ui.tabs.get("General").sections.get("Section_2").setVisible(true);

}

else{

Xrm.Page.ui.tabs.get("General").sections.get("Section_1").setVisible(true);
Xrm.Page.ui.tabs.get("General").sections.get("Section_2").setVisible(true);

}


Viewing all articles
Browse latest Browse all 79901

Trending Articles



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