How to Change WPForms Validation Messages

Would you like to customize the validation messages used on your forms? Customizing validation messages is especially useful if you want to translate your forms into a different language, or if you’d simply like to change the message wording.

In this tutorial, we’ll show you some examples of validation messages and how to change them.


What Are Validation Messages?

WPForms performs different validation techniques for each form element. For example, required fields should not be empty and an email field should contain an email address that is properly formatted.

When these validations are run, they generate different messages to display. The most common message a user might see is “This field is required” if they skip a required field.

WPForms example validation message

How to Customize Validation Messages

To view the existing list of validation messages, go to WPForms » Settings and open the Validation tab.

Validation settings

The specific message options available depend on your license level and what addons you have installed.

Here are all of the validation messages currently available for customization, and their default values:

Validation messages settings

  • Required: This field is required.
  • Website URL: Please enter a valid URL.
  • Email: Please enter a valid email address.
  • Email Suggestion: Did you mean {suggestion}?
  • Number: Please enter a valid number.
  • Confirm Value: Field values do not match.

Validation messages settings

  • Checkbox Selection Limit: You have exceeded the number of allowed selections: {#}.
  • Phone: Please enter a valid phone number.
  • File Extension: File type is not allowed.
  • File Size: File exceeds max size allowed.
  • Time (12 hour): Please enter time in 12-hour AM/PM format (eg 8:45 AM).
  • Time (24 hour): Please enter time in 24-hour format (eg 22:45).

Validation messages settings

  • Payment Required: Payment is required.
  • Credit Card: Please enter a valid credit card number.
  • Field Upload Total Size: The total size of the selected files {totalSize} Mb exceeds the allowed limit {maxSize} Mb.
  • Unique Answer: The value must be unique.

You can customize these messages by simply replacing the default text with the message you want your users to see.

Once you’ve made any changes, just be sure to click Save Settings. These validation messages will be used for any WPForms on your site.

That’s it! You can now customize validation messages on your forms.

Next, would you also like to customize the appearance of your validation messages, or to style other parts of your forms? To get started, check out our Beginner’s Guide to CSS.