diff --git a/api/js/etemplate/Et2InputWidget/Et2InputWidget.ts b/api/js/etemplate/Et2InputWidget/Et2InputWidget.ts index 2d15d9ca5f..5b00ab1894 100644 --- a/api/js/etemplate/Et2InputWidget/Et2InputWidget.ts +++ b/api/js/etemplate/Et2InputWidget/Et2InputWidget.ts @@ -444,6 +444,11 @@ const Et2InputWidgetMixin = >(superclass : T) */ async validate() { + if(this.readonly) + { + // Don't validate if the widget is read-only, there's nothing the user can do about it + return Promise.resolve(); + } let validators = [...(this.validators || []), ...(this.defaultValidators || [])]; let fieldName = this.id; let feedbackData = [];