mirror of
https://github.com/pocketbase/pocketbase.git
synced 2026-10-17 11:38:14 +02:00
[#6066] updated text field validation message
This commit is contained in:
1 parent
9747f46c1d
commit
9efd68ff4c
31 files changed
+92
-91
No files matched your search
+1
-1
@@ -232,7 +232,7 @@ func (f *TextField) ValidatePlainValue(value string) error {
|
||||
}
|
||||
|
||||
if max > 0 && length > max {
|
||||
return validation.NewError("validation_max_text_constraint", "Must be less than {{.max}} character(s)").
|
||||
return validation.NewError("validation_max_text_constraint", "Must be no more than {{.max}} character(s)").
|
||||
SetParams(map[string]any{"max": max})
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user