Could someone explain what these conditions are checking for? I understand it has to do with checking to see if other fields are already disabled, but I I am not completely clear on it. What is referencing the getDisabled method doing specifically?
if (!userHasRoleNeeded) {
Xrm.Page.ui.controls.forEach(function (control, i) {
if (control && control.getDisabled && !control.getDisabled()) {
control.setDisabled(true);
Aucun commentaire:
Enregistrer un commentaire