Closed GonzaloCalandria closed 7 years ago
@GonzaloCalandria in the interim, could you do something like ...
(function() {
var acsCommonsValidateFunction = CQ.form.MultiField.prototype.validate;
CQ.Ext.override(CQ.form.MultiField, {
validate: function() {
//BEGIN The multifield is disabled FIX
if(this.hasClass("x-masked")) {
return true;
}
//END The multifield is disabled FIX
return acsCommonsValidateFunction.apply(this);
}
});
}());
and make that JS part of a clientlibs dependency that is dependent on acs-commons.cq.widgets
Been awhile since ive done anything w ExtJS (TG) so not sure how well that'll work.
ClassicUI
I'm using a
multifield
with amultifieldpanel
(with the propertyminItems=1
) and this is being enabled/disabled using a checkbox. If the checkbox is disabled, themultifield
is being validated and this is making a validation error when themultifield
is empty (and disabled).I've able to fix this in the bellow code but i would like to know if this is really an issue or i'm having a bad implementation: