From 44221f74ef7c6f1566ec8db698284492d3f001a4 Mon Sep 17 00:00:00 2001 From: nathan Date: Fri, 25 Feb 2022 10:30:55 -0700 Subject: [PATCH] Get server-side validation messages displaying --- api/js/etemplate/Et2InputWidget/Et2InputWidget.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/api/js/etemplate/Et2InputWidget/Et2InputWidget.ts b/api/js/etemplate/Et2InputWidget/Et2InputWidget.ts index 121acb9e97..76ec161be2 100644 --- a/api/js/etemplate/Et2InputWidget/Et2InputWidget.ts +++ b/api/js/etemplate/Et2InputWidget/Et2InputWidget.ts @@ -251,7 +251,8 @@ const Et2InputWidgetMixin = (superclass) => // ToDo - implement Lion validators properly, most likely by adding to this.validators // Need to change interaction state so messages show up - this.prefilled = true; + // submitted is a little heavy-handed, especially on first load, but it works + this.submitted = true; // Add validator this.validators.push(new ManualMessage(err)); // Force a validate - not needed normally, but if you call set_validation_error() manually,