I am unable to hide fields of Quick View form on unified interface using javascript. I am using below code for hiding fields inside quick view form. This code works on Classic UI of CRM but doent work on Unified interface.
//function to show or hide fields of Quick View Form
function hideQuickViewFormFields(executionContext) {
var functionName = "hideQuickViewFormFields";
try {
//check executionContect is Valid or not
if (executionContext != null && executionContext != undefined) {
//get formContext
var formContext = executionContext.getFormContext();
//check formcontext is Valid or not
if (formContext != null && formContext != undefined) {
var quickViewControl = formContext.ui.quickForms.get("contactquickviewform");
if (quickViewControl != null && quickViewControl != undefined) {
quickViewControl.getControl("firstname").setVisible(false);
}
}
}
}
catch (ex) {
}
}
I am not able to hide the fields of Quick view form on UCI and also not getting any errors.
Please let me know if any one able to hide the fields of Quick view form on UCI.
Thanks,