gmgarrison Posted September 27, 2021 Share Posted September 27, 2021 Site URL: https://moreland.edu/form-submission-no-redirect We use Infusionsoft as a form handler and I'm trying to figure out how to submit a form via Ajax to avoid the natural page refresh. As it currently sits, I get a CORS error. I've also tried changing the form data type to 'jsonp' and that did change the error, but did not avoid it. I understand that CORS is controlled by server headers which I can't change on Squarespace but is there another way to get this to work somehow? Beyondspace 1 Link to comment
Beyondspace Posted November 9, 2021 Share Posted November 9, 2021 On 9/28/2021 at 4:59 AM, gmgarrison said: Site URL: https://moreland.edu/form-submission-no-redirect We use Infusionsoft as a form handler and I'm trying to figure out how to submit a form via Ajax to avoid the natural page refresh. As it currently sits, I get a CORS error. I've also tried changing the form data type to 'jsonp' and that did change the error, but did not avoid it. I understand that CORS is controlled by server headers which I can't change on Squarespace but is there another way to get this to work somehow? I can think of using webhook to handle the submission and parse the data into your CRM BeyondSpace - Squarespace Website Developer 🖼️ Lightbox Studio (Enable Pinch/Zoom on lightbox) 🗓️ Delivery Date Picker (Squarespace Date format) 💫 Animated Buttons (Referral URL) 🥳 Sparkplugin Customisations Browsers (Browse +100 Spark plugin customisations) 🥳 Elfsight Template Browsers (Browse +1000 Elfsight widget Templates) If you find my answer useful, let's leave a like or upvote so others with the same issue can find their solution. Thank you! Link to comment
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment