UX: form template simpler "value missing" i18n (#24154)
This commit is contained in:
parent
5e633708ac
commit
bdf2a20355
|
@ -102,13 +102,7 @@ function _validateFormTemplateData(form) {
|
||||||
function _showErrorMessage(field, element) {
|
function _showErrorMessage(field, element) {
|
||||||
if (field.validity.valueMissing) {
|
if (field.validity.valueMissing) {
|
||||||
const prefix = "form_templates.errors.valueMissing";
|
const prefix = "form_templates.errors.valueMissing";
|
||||||
const types = [
|
const types = ["select-one", "select-multiple", "checkbox"];
|
||||||
"select-one",
|
|
||||||
"select-multiple",
|
|
||||||
"checkbox",
|
|
||||||
"text",
|
|
||||||
"number",
|
|
||||||
];
|
|
||||||
_showErrorByType(element, field, prefix, types);
|
_showErrorByType(element, field, prefix, types);
|
||||||
} else if (field.validity.typeMismatch) {
|
} else if (field.validity.typeMismatch) {
|
||||||
const prefix = "form_templates.errors.typeMismatch";
|
const prefix = "form_templates.errors.typeMismatch";
|
||||||
|
|
|
@ -4610,7 +4610,6 @@ en:
|
||||||
errors:
|
errors:
|
||||||
valueMissing:
|
valueMissing:
|
||||||
default: "Please fill out this field."
|
default: "Please fill out this field."
|
||||||
text: "Please fill out this field."
|
|
||||||
select-one: "Please select an item in the list."
|
select-one: "Please select an item in the list."
|
||||||
select-multiple: "Please select at least one item in the list."
|
select-multiple: "Please select at least one item in the list."
|
||||||
checkbox: "Please check this box if you want to proceed."
|
checkbox: "Please check this box if you want to proceed."
|
||||||
|
|
Loading…
Reference in New Issue