Hello Experts,
I am trying to hide the Quick View Form Field using the below JavaScript, but sometimes it's working, and sometimes not.
function showAndHideInfo(executionContext) {
var formContext = executionContext.getFormContext();
var quickViewControl = formContext.ui.quickForms.get("testQV");
if (quickViewControl != undefined) {
if (quickViewControl.isLoaded()) {
var value = quickViewControl.getAttribute("dg_defg").getValue();
if (value == 450790000) {//ACTIVE
quickViewControl.getControl("dg_test12").setVisible(true);
quickViewControl.getControl("tg_installmentbillingplanstartdate").setVisible(true);
formContext.getAttribute("blockedprofile").setValue(true);
}
else {
quickViewControl.getControl("tg_installmentbillingenrollmentdate").setVisible(false);
quickViewControl.getControl("tg_installmentbillingplanstartdate").setVisible(false);
formContext.getAttribute("blockedprofile").setValue(false);
}
}
}
}
Thanks
-Sri