• I have my contact form 7 form on a post that is displayed on my website via lightbox when a link is clicked. When I open it and click submit with all fields (including required fields) instead of giving an error it instead goes to a page that just displays “0” and nothing else. It does the same thing even if the fields are filled and no email is sent. How do I fix this?

Viewing 5 replies - 1 through 5 (of 5 total)
  • Please include a link to your form in your original question.

    Thread Starter carmichaeldb

    (@carmichaeldb)

    @buzztone

    unfortunately i’m working it locally on localhost so I do not have a url.

    Thread Starter carmichaeldb

    (@carmichaeldb)

    have been looking around more and it looks like theres an issue involving admin-ajax.php

    from my understanding its responsible of handling data on a wordpress site, and theres an error somewhere. the url it redirects to is:

    localhost:8888/wp-admin/admin-ajax.php#wpcf7-f10-o1

    Thread Starter carmichaeldb

    (@carmichaeldb)

    when I inspect the code in the browser that url is posted as the form action. I haven’t been able to find “wpcf7-f10-o1” in any of the files within the entire site so I haven’t been able to find what is generating that.

    Thread Starter carmichaeldb

    (@carmichaeldb)

    The following is the HTML being produced for the form:

    <div class=”screen-reader-response” style=”color: rgba(0, 0, 0, 0.9);”>

    <form action=”/wp-admin/admin-ajax.php#wpcf7-f190-o1″ method=”post” class=”wpcf7-form” novalidate=”novalidate” style=”color: rgba(0, 0, 0, 0.9);”>

    <div style=”display: none; color: rgba(0, 0, 0, 0.9);”>

    <input type=”hidden” name=”_wpcf7″ value=”190″ style=”color: rgba(0, 0, 0, 0.9);”>

    <input type=”hidden” name=”_wpcf7_version” value=”5.1.1″ style=”color: rgba(0, 0, 0, 0.9);”>

    <input type=”hidden” name=”_wpcf7_locale” value=”en_US” style=”color: rgba(0, 0, 0, 0.9);”>

    <input type=”hidden” name=”_wpcf7_unit_tag” value=”wpcf7-f190-o1″ style=”color: rgba(0, 0, 0, 0.9);”>

    <input type=”hidden” name=”_wpcf7_container_post” value=”0″ style=”color: rgba(0, 0, 0, 0.9);”>

    <input type=”hidden” name=”g-recaptcha-response” value=”” style=”color: rgba(0, 0, 0, 0.9);”>
    </div>

    <p style=”color: rgba(0, 0, 0, 0.9);”>
    <label style=”color: rgba(0, 0, 0, 0.9);”> Name (req)<br style=”color: rgba(0, 0, 0, 0.9);”>

    <span class=”wpcf7-form-control-wrap your-name” style=”color: rgba(0, 0, 0, 0.9);”>

    <input type=”text” name=”your-name” value=”” size=”40″ class=”wpcf7-form-control wpcf7-text wpcf7-validates-as-required” aria-required=”true” aria-invalid=”false” style=”color: rgba(0, 0, 0, 0.9);”></span></label></p>

    <p style=”color: rgba(0, 0, 0, 0.9);”><label style=”color: rgba(0, 0, 0, 0.9);”> Telephone (req)<br style=”color: rgba(0, 0, 0, 0.9);”>

    <span class=”wpcf7-form-control-wrap tel-467″ style=”color: rgba(0, 0, 0, 0.9);”>

    <input type=”tel” name=”tel-467″ value=”” size=”40″ class=”wpcf7-form-control wpcf7-text wpcf7-tel wpcf7-validates-as-required wpcf7-validates-as-tel” aria-required=”true” aria-invalid=”false” style=”color: rgba(0, 0, 0, 0.9);”></span> </label></p>

    <p style=”color: rgba(0, 0, 0, 0.9);”><label style=”color: rgba(0, 0, 0, 0.9);”> Email (req)<br style=”color: rgba(0, 0, 0, 0.9);”>

    <span class=”wpcf7-form-control-wrap your-email” style=”color: rgba(0, 0, 0, 0.9);”>

    <input type=”email” name=”your-email” value=”” size=”40″ class=”wpcf7-form-control wpcf7-text wpcf7-email wpcf7-validates-as-required wpcf7-validates-as-email” aria-required=”true” aria-invalid=”false” style=”color: rgba(0, 0, 0, 0.9);”></span> </label></p>

    <p style=”color: rgba(0, 0, 0, 0.9);”><label style=”color: rgba(0, 0, 0, 0.9);”> What’s Your Idea?<br style=”color: rgba(0, 0, 0, 0.9);”>

    <span class=”wpcf7-form-control-wrap your-message” style=”color: rgba(0, 0, 0, 0.9);”><textarea name=”your-message” cols=”40″ rows=”10″ class=”wpcf7-form-control wpcf7-textarea” aria-invalid=”false” style=”color: rgba(0, 0, 0, 0.9);”></textarea></span> </label></p>

    <p style=”color: rgba(0, 0, 0, 0.9);”><input type=”submit” value=”Send” class=”wpcf7-form-control wpcf7-submit” style=”color: rgba(0, 0, 0, 0.9);”></p>
    <div class=”wpcf7-response-output wpcf7-display-none” style=”color: rgba(0, 0, 0, 0.9);”></div></form></div>

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Contact form in lightbox submit button issues’ is closed to new replies.