PLEASE NOTE: These forums are no longer utilized and are provided as an archive for informational purposes only. All support issues will be handled via email using our support ticket system. For more detailed information on this change, please see this blog post.

Translate required field error message

  1. caroig
    Member

    Is there a hook I can use to change the 'This field is required.' message?

    Thanks,

    Posted 12 years ago on Tuesday April 24, 2012 | Permalink
  2. David Peralty

    In the advanced tab of a field, there should be an input box called Validation Message. Try changing it there and let me know if that solves your issue.

    Posted 12 years ago on Tuesday April 24, 2012 | Permalink
  3. caroig
    Member

    Thanks,
    But I have about 20 fields across the site and I'd prefer to set it once in functions if there is a hook available.

    Posted 12 years ago on Tuesday April 24, 2012 | Permalink
  4. David Peralty

    Sure, take a look at:
    http://www.gravityhelp.com/documentation/page/Gform_validation_message

    Posted 12 years ago on Tuesday April 24, 2012 | Permalink
  5. There's a way to set ALL the Field validation messages ONCE (E.g. This field is required)?
    I have lots of forms with lots of fields, and change the message separately is a bit bothering.

    I've tried with that code but just change the general form message (There was a problem with your submission. Errors have been highlighted below).

    Also, the default string should be on the .mo/.po files to be translated easily :S

    Cheers!

    Posted 12 years ago on Tuesday November 6, 2012 | Permalink
  6. David Peralty

    If you are looking for field validation, please look here: http://www.gravityhelp.com/documentation/page/Gform_field_validation

    You can validate any/all fields in specific forms, all forms, etc... using the above hook.

    Posted 12 years ago on Tuesday November 6, 2012 | Permalink