Add error message for non-optional input

This commit is contained in:
Nicola Soranzo
2021-03-26 20:39:35 +00:00
parent 9c01844a45
commit f29a1caee5
+1 -1
View File
@@ -356,7 +356,7 @@ const View = Backbone.View.extend({
continue;
}
if (!input_def.optional && input_value == null && input_def.type != "hidden") {
this.form.highlight(input_id);
this.form.highlight(input_id, "This input requires a value.");
return false;
}
if (input_field.validate) {