• Resolved Jurjen

    (@jurjen)


    Hi all,

    I tried to put this form in Lightbox (actually the colorbox plugin).
    It’s in the footer of my website.

    So, the contact form is hidden, until the Lightbox is opened on clicking a link.

    However, upon hitting “submit” the website reloads and the lightbox is invisible again. I’m trying to create a code that allows for the website to automatically popup when it reloads after validating the form.

    Unfortunately my programming skills aren’t the strongest. I tried so far to find some conditions, like if ($view == message_not_sent || $view == message_sent), but the form doesn’t set any variable to an actual value.

    Any recommendations?

    https://ww.wp.xz.cn/plugins/clean-and-simple-contact-form-by-meg-nicholas/

Viewing 8 replies - 1 through 8 (of 8 total)
  • Hello

    Can you give me some more information?

    Which plugin are you using for Lightbox?
    Do you have a URL you can give me that demonstrates the problem?
    Do you have the setting ‘Use client side validation (AJAX) :’ checked?

    Many thanks, Meg

    Thread Starter Jurjen

    (@jurjen)

    This is the plugin: https://ww.wp.xz.cn/plugins/wp-colorbox/

    Yes, the AJAX validation has been activated in the settings.

    I could send a link to my test page via email, I’d rather not put it here since I don’t want Google to index it yet.

    Thanks!

    Hi Juren,

    Yes please do send me a link here.

    Meg

    Hi Juren,
    I can’t see the problem demonstrated on the contact page. It looks as if you have removed the lightbox?

    Thread Starter Jurjen

    (@jurjen)

    No, as mentioned, the lightbox is in the contact section in the footer area. The contact page was made as a backup if the footer popup wouldn’t work properly when the site will be ready to launch.

    So you did, sorry about that.
    Can you remove the recaptcha? The form doesn’t work when you place it on a page twice with a recaptcha. This is a limitation of recaptcha.

    Thread Starter Jurjen

    (@jurjen)

    That would be only on the contact page. On the other pages, this shouldn’t cause any bug using the contact form through the footer.

    Also, I think this bug only surfaces in Google Chrome, as one of my testers using Chrome mentioned it. However, I don’t have this bug in FireFox and IE.

    But, I’ve removed the recaptcha so you can try some things.

    I’ve noticed another bug while changing the settings though (not sure if it’s in the plugin or the WordPress back-end though): if I enter multilingual content in the message boxes, it will save correctly, however it doesn’t load all the content afterwards.

    Example: in the box for “Message sent header” I’ve entered: [:en]Message sent![:fr]Message envoyé![:nl]Bericht verzonden!. It saves correctly (it shows in the SQL database and loads correctly in the contact form), but revisiting the contact form admin page, it only loads the French texts. (So now it just shows Message envoyé! in the Message sent header box.)

    Hi there,

    Can you take the contact form off the main page and leave just the lightbox one on for now and I will look at it again.

    I see you have just the lightbox contact form on the other pages, but for some reason the jquery code for ajax is not being loaded?

Viewing 8 replies - 1 through 8 (of 8 total)

The topic ‘Lightbox popup on submit’ is closed to new replies.