• The plugin does not degrace gracefully when using a form with JavaScript disabled.

    Additionally, the event binding does not work with elements which are added to the page during or after the document.ready event. A better way would be to use delegation, which requires changing just one line of code in the plugin.

    File: js/mailing-front.js

    
    jQuery('form').on('submit', function(e){
    

    Should be changed to:

    
    jQuery(document).on('submit', 'form', function(e) {
    

    That will use event delegation, meaning the script will hook into any form that is submitted regardless of when its DOM element was created. I would submit a pull request, but was unable to find the plugin on GitHub.

    Cheers, Danny

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author Brevo

    (@neeraj_slit)

    Hi Danny,

    Thank you for letting us know – we appreciate it.
    Our developers will look into it!

    Have a great day.
    SendinBlue Customer Care

    Hi,

    Thanks Danny for finding this and reporting it to SendinBlue.

    @SendinBlue, our site is affected by this issue when using a SendinBlue mailing list subscription form inside a Boxzilla pop-up window. Could you please let me know if there’s a new version of the plugin to test?

    Best,
    Marc

    Plugin Author Brevo

    (@neeraj_slit)

    Hi Marc,

    The latest version of the plugin is Version 2.7.3. Are you still experiencing this issue?

    Kind regards,
    SendinBlue Customer Care

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Form not working without JavaScript’ is closed to new replies.