UX: form template simpler "value missing" i18n (#24154)

This commit is contained in:
Renato Atilio 2023-10-30 17:40:07 -03:00 committed by GitHub
parent 5e633708ac
commit bdf2a20355
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 1 additions and 8 deletions

View File

@ -102,13 +102,7 @@ function _validateFormTemplateData(form) {
function _showErrorMessage(field, element) {
if (field.validity.valueMissing) {
const prefix = "form_templates.errors.valueMissing";
const types = [
"select-one",
"select-multiple",
"checkbox",
"text",
"number",
];
const types = ["select-one", "select-multiple", "checkbox"];
_showErrorByType(element, field, prefix, types);
} else if (field.validity.typeMismatch) {
const prefix = "form_templates.errors.typeMismatch";

View File

@ -4610,7 +4610,6 @@ en:
errors:
valueMissing:
default: "Please fill out this field."
text: "Please fill out this field."
select-one: "Please select an 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."