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.

Change the default "this field is required"

  1. From this page https://gist.github.com/BronsonQuick/2366001
    I tried applying this, but it doesn't work.
    Please advice. Thanks

    //This is a filter to change the default validation message that Gravity Forms generates
    add_filter('gform_validation_message', 'change_validation_message', 10, 2);
    function change_validation_message($message, $form)
    {
    return "<div class='validation_error'>Oops! Looks like there’s something wrong. Please review the form above.</div>";
    }

    Posted 10 years ago on Tuesday May 14, 2013 | Permalink
  2. Can someone from support respond?
    How to replace the default "This field is required" for like 20 fields in one go?

    Posted 10 years ago on Wednesday May 15, 2013 | Permalink
  3. Deepend
    Member

    I would also be interested in a hook to change that default required message for fields.

    Seems the code you used above @siwbao targets the main error, no the field errors.

    Cheers.

    Posted 10 years ago on Friday May 31, 2013 | Permalink