• Hi,

    I’m using CF7 for all forms across my site.
    But I’m having an issue with the forms not working in popups.

    If I add a shortcode for the form onto a page the forms works with no problem.
    But If I use the same shortcode and add it into a popup, the form throws an error
    ‘There was an error trying to send your message. Please try again.’

    Do you have any idea why and how I can fix this please?

    The page I need help with: [log in to see the link]

Viewing 1 replies (of 1 total)
  • check your browser console:

    (index):115 Uncaught TypeError: Cannot read property 'addEventListener' of null
    
    var form = document.getElementById('ukdemorequestform');
    form.addEventListener('submit', function (evt) {
    ....

    I assume that when “ukdemorequestform” is searched with js, it is not yet on the page. seems an error related to your template, autoptimize etc

Viewing 1 replies (of 1 total)
  • The topic ‘Form error in popup’ is closed to new replies.