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.

New Hooks and Filters

  1. I am assuming that new hooks or filters were added to 1.39 -- I am working with a developer using GF as the front end for the project, and i was curious if the documentation was updated with any new hooks etc. What I am working on with him is in the realm as the mail chimp idea. Submitting info to a central location from the form, so I thought some of the hooks might help in production.

    Posted 14 years ago on Tuesday February 9, 2010 | Permalink
  2. The only new filter that was added in 1.3.9 is a filter to change the primary validation message that appears at the top of a form when there is an error on the form. This is the form wide error message, not an individual field error message.

    add_filter("gform_validation_message", "change_message", 10, 2);
            function change_message($message, $form){
                return "failed " . $form["title"];
            }

    Field level validation message customization is already available as an option under the advanced tab on individual fields.

    It hasn't been added to the documentation just yet.

    Posted 14 years ago on Tuesday February 9, 2010 | Permalink
  3. jigsaw-internet
    Member

    Can somebody please tell me how I use this to change the global validation message please?

    Posted 14 years ago on Friday April 23, 2010 | Permalink
  4. jigsaw-internet
    Member

    I've managed to change it with the jQuery method from another thread. Would be good to have this as a global form setting though please.

    Posted 14 years ago on Friday April 23, 2010 | Permalink
  5. Just for anyone else trying to do this:

    - The function hook can sit at the bottom of your functions.php.

    - If you want the same error style, just with your own message, here is the hook/function:

    add_filter("gform_validation_message", "change_message", 10, 2);
    function change_message($message, $form){
        return '<div class="validation_error"> Your Error message here </div>';
    }
    Posted 13 years ago on Wednesday October 27, 2010 | Permalink