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.

Link to comment


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.