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

Can't read properties of null in javaScript in MS CRM

$
0
0

function ShowHideTabs(executionContext) {

//Get the form contex
var formContext = executionContext.getFormContext();
var optionSetAttribute = formContext.getAttribute("mri_optionset").getValue();

if (formContext.getAttribute("mri_optionset").getValue() == 171800000) {
formContext.ui.tabs.get("tab_2").setVisible(true);

}
else (formContext.getAttribute("mri_optionset").getValue() != 0){
formContext.ui.tabs.get("tab_2").setVisible(false);
}
}


Viewing all articles
Browse latest Browse all 79901

Trending Articles



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