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.

Different primary validation error message for 2 language forms possible?

  1. zuendholz
    Member

    Hello there,

    my problem is that I can't change the primary validation error message within my different languages forms. It is only possible to customize the validation message on a field.

    Searching for this problem, I found this function in order to change the primary validation error message in general, but not for different language forms:

    add_filter("gform_validation_message", "change_message", 10, 2);
    function change_message($message, $form){
    return '<div class="validation_error"> Your Error message here </div>';
    }

    And now I wonder, if there is an elegant way to improve this function with a multi-language-aspect. ;)

    Posted 14 years ago on Thursday November 4, 2010 | Permalink
  2. You can target a specific form id by adding the form id to the gform_validation_message filter.

    So instead of:

    gform_validation_message

    You would use:

    gform_validation_message_10

    With 10 being the form id. You would of course change that id to whatever it needs to be for that specific form. I'm assuming each language has it's own form as Gravity Forms doesn't support multi-language forms as of right now.

    Posted 14 years ago on Thursday November 4, 2010 | Permalink