• I can’t believe not finding an answer to this after hours of googling so I’ll try here.

    I times of more restrictive privacy laws, whenever one collects user data there should be user consent.

    So, this works with a wpcf7 form in a normal page:

    — some collected data here —
    [submit “Send”]
    [acceptance acceptance-991]Click here to accept our
    Privacy Policy (Required)
    [/acceptance]

    However, if the same form is displayed in a lightbox (at least with Flatsome), after clicking “Send” the lightbox just closes. If the acceptance checkbox is marked, the mail is sent ok (but the submitter does not know if it did), if it is not, there is just silence.

    So the question is, how do I prevent the lightbox from closing the the sender sees if the submission went through or not?

    Perhaps I’m missing the obvious but I just cannot figure it out.

Viewing 7 replies - 1 through 7 (of 7 total)
  • Thread Starter labbapo11

    (@labbapo11)

    The piece in an UX block that opens the lightbox:

    <p>[button primary class=”is-outline is-smaller” text=”Ask about this item” link=”#enquire”]
    [lightbox id=”enquire” width=”600px” padding=”15px”]
    [title style=”center” text=”Your question”]
    [contact-form-7 id=”17678″ title=”Enquire”]
    [/lightbox]
    </p>

    If I open the lightbox again without refreshing the page the success/error messages are visible.

    Plugin Author Takayuki Miyoshi

    (@takayukister)

    Where can we see the website in question?

    Thread Starter labbapo11

    (@labbapo11)

    Well, you cannot, but the form is supposed to go here once working:
    https://www.gearwise.se/

    Plugin Author Takayuki Miyoshi

    (@takayukister)

    What other plugins and theme do you use on the site?

    Thread Starter labbapo11

    (@labbapo11)

    Advanced Custom Fields Version 5.8.12 by Elliot Condon (Latest version: 5.8.13)
    Advanced noCaptcha & invisible Captcha Version 5.7.1 by Shamim Hasan
    Auto SKU & GTIN Version 1.0.2 by Nabil Kadimi
    Booster Plus for WooCommerce Version 5.1.1 by Pluggabl LLC
    BunnyCDN Version 1.0.7 by BunnyCDN
    Calculated Fields Form Version 1.0.398 by CodePeople (Latest version: 1.0.400)
    Classic Editor Version 1.5 by WordPress Contributors
    Contact Form 7 Version 5.2.1 by Takayuki Miyoshi
    Contact Form 7 – Dynamic Text Extension Version 2.0.3 by Chris Mavricos, SevenSpark
    Contact Form 7 Conditional Fields Version 1.9.9 by Jules Colle
    Facebook for WooCommerce Version 1.11.4 by Facebook
    Flatsome Tweaks Version 1.0.0 by Nabil Kadimi
    GDPR Cookie Consent Version 2.3.0 by WebToffee
    Google XML Sitemaps Version 4.1.0 by Arne Brachhold
    Max Mega Menu Version 2.8 by megamenu.com
    Optimize Database after Deleting Revisions Version 4.9.1 by CAGE Web Design | Rolf van Gelder, Eindhoven, The Netherlands
    Post SMTP Version 2.0.12 by Yehuda Hassine
    Product Feed PRO for WooCommerce Version 8.5.7 by AdTribes.io (Latest version: 8.5.8)
    Redux Framework Version 3.6.18 by Team Redux (Latest version: 4.1.13)
    Schema Pro Version 2.1.1 by Brainstorm Force
    Speed Booster Pack Version 4.0.1 by Optimocha
    TinyMCE Advanced Version 5.4.0 by Andrew Ozz
    User Export (with their Meta Data) Version 0.6.4 by Daniel Loureiro (Latest version: 0.6.7)
    WebP Express Version 0.17.4 by Bj?rn Rosell
    WooCommerce Version 4.3.1 by Automattic

    Thread Starter labbapo11

    (@labbapo11)

    I can give you access to the testing site if you tell me where to send the info, send it to lab at nethead dot se

    Thread Starter labbapo11

    (@labbapo11)

    Ok, I’ve gotten as far as pinpointing the plugin that causes this, Speed Booster Pack.
    Turning off “Optimize JavaScript” will render the lightbox messages.

    Sigh. There are 2367 .js scripts to choose from and one or more of them needs to be excluded from being deferred or moved to the footer so if you have an idea please let me know.

    Thanks,
    Per

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘Prevent submit button to close lightbox’ is closed to new replies.