diff --git a/api/js/etemplate/Et2InputWidget/Et2InputWidget.ts b/api/js/etemplate/Et2InputWidget/Et2InputWidget.ts index 48385706c6..c3326005c1 100644 --- a/api/js/etemplate/Et2InputWidget/Et2InputWidget.ts +++ b/api/js/etemplate/Et2InputWidget/Et2InputWidget.ts @@ -29,6 +29,8 @@ export declare class Et2InputWidgetInterface public set_readonly(boolean) : void; + public set_validation_error(message : string | false) : void; + public isDirty() : boolean; public resetDirty() : void; diff --git a/api/js/etemplate/etemplate2.ts b/api/js/etemplate/etemplate2.ts index 8e0893f709..1d940595ef 100644 --- a/api/js/etemplate/etemplate2.ts +++ b/api/js/etemplate/etemplate2.ts @@ -1565,7 +1565,10 @@ export class etemplate2 { (tmpWidget).activateTab(widget); } - + } + else if(typeof widget.set_validation_error == "function") + { + widget.set_validation_error(_response.data[id]); } } egw().debug("warn", "Validation errors", _response.data);