From 85c31ba068e4ba581b7b0e944736512ee45f7e77 Mon Sep 17 00:00:00 2001 From: Gani Georgiev Date: Sun, 8 Dec 2024 13:19:44 +0200 Subject: [PATCH] [#6053] fixed text field max validation error message --- core/field_text.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/field_text.go b/core/field_text.go index 7dc77a76..3fda2cd1 100644 --- a/core/field_text.go +++ b/core/field_text.go @@ -233,7 +233,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)"). - SetParams(map[string]any{"max": f.Max}) + SetParams(map[string]any{"max": max}) } if f.Pattern != "" {