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.

Gform validation message ignored

  1. caroig
    Member

    I have some filters in my functions.php for localizing gf. eg:-

    add_filter("gform_name_first", "change_name_first", 10, 2);
    function change_name_first($label, $form_id){
    return "Nombre";
    }
    add_filter("gform_validation_message", "change_message", 10, 2);
    function change_message($message, $form){
    return "<div class='validation_error'>Hay errores en el formulario, por favor corrĂ­gelos y envialo de nuevo</div>";
    }

    In the above, the gform_name_first filter works fine. The gform_validation_message is ignored and the default validation message is displayed.

    How can I correctly set the validation message?

    Thanks,

    Posted 12 years ago on Thursday March 15, 2012 | Permalink
  2. caroig
    Member

    This is an issue with the rootstheme, the validation message is changed in the roots-cleanup.php

    Posted 12 years ago on Saturday March 17, 2012 | Permalink