Skip to main content
2 of 3
added 8 characters in body
Triskelion
  • 4.9k
  • 2
  • 19
  • 23

Change form validation error messages in Drupal 7

In my theme I'm already using the hook_form_alter to customize the form fields but now I want to customize the validation error messages.

After some research, the only way I'm finding is to write a whole separate function and custom error handling of each form field.

I don't want to reinvent the wheel. Isn't there just a simple way to change the default form validation error so I can get away from "XYZ field is required?"

LeoXela
  • 31
  • 1
  • 1
  • 2