WordPress.org

Forums

Form Lightbox
Validation on Contact form 7 in lightbox not working (7 posts)

  1. mev9669
    Member
    Posted 1 year ago #

    Hi,

    I added a contact form 7 in the form lightbox using the below code

    [formlightbox_call title="Email a Friend" class="2"]Email a Friend[/formlightbox_call]
    [formlightbox_obj id="2" style="padding: 10px;"][contact-form-7 id="114" title="Email a Friend"]][/formlightbox_obj]
    </li>

    The form has some required fields and other validations to be performed. If i Click the send button on the contact form, the validations dont work and closes the lightbox and puts a #wpcf7-f137-p32-o1. on the url (http://sitename.com/pagename/#wpcf7-f137-p32-o1).

    http://wordpress.org/plugins/form-lightbox/

  2. sez3r
    Member
    Posted 1 year ago #

    same issue here..

    pop up must give notifications ??

  3. esmi
    Forum Moderator
    Posted 1 year ago #

    @sez3r: If you require assistance then, as per the Forum Welcome, please post your own topic.

  4. mev9669
    Member
    Posted 1 year ago #

    After struggling for ages I managed to found a solution.

    Look at the following article.
    contact form 7 article

    The issue I had was because wp-footer() was missing on my page template.

  5. mev9669
    Member
    Posted 1 year ago #

    Are you trying to load it in lightbox?

  6. sez3r
    Member
    Posted 1 year ago #

    and thank you mev!

  7. mev9669
    Member
    Posted 1 year ago #

    Great that it worked for you. What I did was
    1. Created a template with no header and footer.
    2. Then created pages for each form that I want to load in the lightbox.
    3. Assigned the blank template to the form pages I created.
    4. Put the iframe link to be loaded inside the lightbox.

    Read the article from the link I sent earlier.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic