WordPress.org

Ready to get started?Download WordPress

Forums

Grunion Contact Form
Two contact form widgets interrupt each other (6 posts)

  1. Koff
    Member
    Posted 2 years ago #

    Hej,

    It looks like if I set two contact forms on the same page.

    When submitting:

    Errors are checked also on the non submitted form.

    Koff

    http://wordpress.org/extend/plugins/grunion-contact-form/

  2. Koff
    Member
    Posted 2 years ago #

    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 );
  3. belchandan
    Member
    Posted 1 year ago #

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

  4. Koff
    Member
    Posted 1 year ago #

    Yes

  5. belchandan
    Member
    Posted 1 year ago #

    thanks, Koff :)

  6. roibot
    Member
    Posted 1 year ago #

    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 );`

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic