I get these standard error messages instead of my custom ones
The comments field is required.
The name field is required. The email
must be a valid email address.
Even though in the component I have these settings:
[genericForm contactForm]
group = "Contact"
rules[comments] = "required"
rules[name] = "required"
rules[email] = "required|email"
rules[phone] = "numeric"
rules_messages[name.required] = "Gelieve uw naam in te vullen"
rules_messages[comments.required] = "U bent uw vraag vergeten te stellen"
rules_messages[email.required] = "Gelieve uw email toe te voegen"
rules_messages[email.email] = "Uw e-mail adres klopt niet"
rules_messages[phone.numeric] = "Uw telefoonnummer klopt niet"
messages_success = "Uw formulier was succesvol verzonden. We nemen zo spoedig mogelijk contact met u op!"
messages_errors = "Er zijn problemen met het versturen van het formulier"
mail_enabled = 1
mail_recipients[] = "miguel@kixx-concept.be"
reset_form = 1
inline_errors = "display"
sanitize_data = "disabled"
anonymize_ip = "disabled"
recaptcha_theme = "light"
recaptcha_type = "image"
recaptcha_size = "normal"
Both the flash messages are displaying correctly though, it's just the custom messages. It's pretty clear in the docs on how you should it, so what am I missing here?
Extra question: I've been able to make it work with 'inline errors: display errors'. But I haven't found how I can get that flash error message to appear on top on invalid submit while having chosen inline errors.