Hi team,
Just purchased a Pro Single Licence and Cornerstone Forms. I’m setting up a simple contact form as a global Component and running into JavaScript errors that appear to break the AJAX functionality.
Environment
- Pro Theme: latest version
- Cornerstone: 7.8+
- Cornerstone Forms: latest
- WordPress: latest
- Hosting: SiteGround
- SMTP: WP Mail SMTP with Brevo
Console errors (on every page load where the form exists)
cs-form-flatpickr.min.js:5 — Uncaught TypeError: Cannot destructure property 'listenerPassive' of 'N' as it is undefined.
cornerstone-forms.min.js:5 — Uncaught TypeError: Cannot destructure property 'teardown' of 'tt' as it is undefined.
These fire before any user interaction.
What’s happening
- AJAX is enabled on the form (toggled on in settings)
- Method is set to POST, Action is empty (sends to self)
- Despite AJAX being on, the form does a full page reload on submission instead of submitting via AJAX
- This causes the browser’s “Confirm Form Resubmission” prompt if the user refreshes after submitting
- No inline success message appears after submission — the page just reloads
What’s working
- The form IS submitting successfully — emails arrive and submissions are stored under Cornerstone > Form Submissions
- It’s only the AJAX/client-side behaviour that’s broken
Form setup
- Form ID: contact-form
- Method: POST
- AJAX: On
- Error Inline: On
- Fields: Text inputs (Contact Name, Business Name, Email Address, Phone Number), Textarea (Description), Hidden input (Page Source)
- Actions: Email Action + Submission Storage enabled
Expected behaviour: Form submits via AJAX without page reload, success state is detectable on the client side for showing a thank you message.
Actual behaviour: Full page reload, no AJAX, JS errors in console.