Hello,
I wrote a very easy JS that works on OnLoad of the Form, but I have an "TypeError: Cannot read property 'Initialize' of undefined at eval (eval at RunHandlerInternal" error.
If anyone of you might help, it would be amazing!
Script si below.
// JavaScript Document
function showHide(){
var queryType = Xrm.Page.getAttribute("srm_reviewtype").getValue();
if(queryType != null){
if(queryType == 165780000){
Xrm.Page.ui.tabs.get("GeneralTab").sections.get("REVIEW_INFORMATION").setVisible(true);
Xrm.Page.ui.tabs.get("GeneralTab").sections.get("FINANCIAL_STATUS_CHECK").setVisible(true);
Xrm.Page.ui.tabs.get("GeneralTab").sections.get("PERFORMANCE_REVIEW").setVisible(false);
Xrm.Page.ui.tabs.get("GeneralTab").sections.get("FEEDBACK_BY").setVisible(false);
Xrm.Page.ui.tabs.get("GeneralTab").sections.get("ACTIVITIES").setVisible(false);
}
else if(queryType == 165780001){
Xrm.Page.ui.tabs.get("GeneralTab").sections.get("REVIEW_INFORMATION").setVisible(true);
Xrm.Page.ui.tabs.get("GeneralTab").sections.get("FINANCIAL_STATUS_CHECK").setVisible(false);
Xrm.Page.ui.tabs.get("GeneralTab").sections.get("PERFORMANCE_REVIEW").setVisible(true);
Xrm.Page.ui.tabs.get("GeneralTab").sections.get("FEEDBACK_BY").setVisible(true);
Xrm.Page.ui.tabs.get("GeneralTab").sections.get("ACTIVITIES").setVisible(true);
}
}
else
{
Xrm.Page.ui.tabs.get("GeneralTab").setVisible(true);
}
}
*This post is locked for comments