WordPress.org

Support

Support » Plugins and Hacks » [Plugin: Grunion Contact Form] Two contact form widgets interrupt each other

[Plugin: Grunion Contact Form] Two contact form widgets interrupt each other

Viewing 5 replies - 1 through 5 (of 5 total)
  • Koff
    Member

    @orenkolker

    I added this code to fix:

    grunion-contact-form.php: 291

    if ($_POST['contact-form-id'] !=  $contact_form_last_id )
                return $r;

    grunion-contact-form.php: 200

    if ( $_POST['contact-form-id'] == $contact_form_last_id) {
    		contact_form_validate_field( $field );

    belchandan
    Member

    @bhupeshbelchandan

    is that mean we can add multiple contact form on same page/post by applying code you mentioned?

    Koff
    Member

    @orenkolker

    Yes

    belchandan
    Member

    @bhupeshbelchandan

    thanks, Koff 🙂

    Thanks for the fix, brilliant, just there is a spare curly brace, an dthe line numbering isn’t 100% clear, but doing the following fixed it for me.

    grunion-contact-form.php: 200

    Should be: replace lines 199 & 200 with `if ( $_POST[‘contact-form-id’] == $contact_form_last_id)
    contact_form_validate_field( $field );`

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘[Plugin: Grunion Contact Form] Two contact form widgets interrupt each other’ is closed to new replies.