Jump to content

Posting form data to external API

Recommended Posts

I've added jquery to my site, and I'm trying to override the form submission to post the form to an external api via Ajax but I'm not having any luck. 
I tried adding a listener to the submit but but it didn't trigger.

$('input[type="submit"').on( "click", function() {
  alert("Button triggered");
});

Can anyone help out? Thanks.

Link to comment
  • Replies 1
  • Views 1.1k
  • Created
  • Last Reply

I don’t have the answer to your question, but another workaround might be to use the option to save the form to Google Drive and work your magic there.

christyprice.com  🇺🇸 Austin, TX US 

 Get my 100+ item Client Process Checklist for $17.
📔 Flourish Journal for Creative Entrepreneurs - 365 days of prompts
🎥 Watch Circle Live: Hello Income (feat. Christy Price and Jeremy Schwartz)
🎬 Watch It's Not Hard to Say Goodbye: Crafting Client Offboarding from Circle Day 2023

Link to comment

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Squarespace Webinars

Free online sessions where you’ll learn the basics and refine your Squarespace skills.

Hire a Designer

Stand out online with the help of an experienced designer or developer.