• Resolved Howdy_McGee

    (@howdy_mcgee)


    Normally, Contact Form 7 validates and submits via AJAX by default. After installing, configuring, and testing this plugin I see that it forces Contact Form 7 to submit to the page / refresh instead of validating via AJAX.

    I don’t have any JS Console errors nor do I have any PHP errors ( that WP debug has found anyway via debug.log ). Does this plugin not support AJAX submissions with Contact Form 7? If not how would I go about enabling this?

Viewing 1 replies (of 1 total)
  • Thread Starter Howdy_McGee

    (@howdy_mcgee)

    The plugin author reached out and found the solution to the issue. Instead of using the default Contact Form 7 [submit] shortcode I was using regular HTML buttons:

    <button type="submit" class="btnPrimary">Submit</button>

    The plugin author pointed out that it looks for the class on the Contact Form 7 submit button, once I added that class to my custom button it started functioning correctly / as expected again. The class it looks for is wpcf7-submit:

    <button type="submit" class="btnPrimary wpcf7-submit">Submit</button>

Viewing 1 replies (of 1 total)
  • The topic ‘WPCF7 Posts ( Refreshes ) Page Instead of AJAX’ is closed to new replies.