WordPress.org

Ready to get started?Download WordPress

Forums

Grunion Contact Form
CAn you put this in teh code line please - multiple forms (2 posts)

  1. roibot
    Member
    Posted 1 year ago #

    Hi,

    this problem (multiple forms on one page ) has been resolved for a while - is it possible you could drop teh changes into teh code line http://wordpress.org/support/topic/plugin-grunion-contact-form-two-contact-form-widgets-interrupt-each-other

    Please?

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

  2. karpediem
    Member
    Posted 1 year ago #

    Hi,

    PLease could you give me more information about how to do these modifications.

    Have a look from what I tried :
    1 - I replaced lines 199 & 200 with `

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

    2 - I added on line 291

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

    just after

    if ( is_wp_error($contact_form_errors) )
    	return $r;

    Do you think is it correct because the result is wrong : when I submit my form with errors on the page, I have the same error message in the form on the widget.

    Thank you for your help

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags

No tags yet.