Jump to content

Submitting form data to backend server

Recommended Posts

I have a form that collects a few data fields, then has user press "Submit" button. I want to send this data to our backend server (I do not want to use any of the Storage options, as we want our server to take action after the submit).

My solution was to add some javascript into the  advanced --> POST-SUBMIT HTML area and do a POST to our server, which seems to get called fine when button is pressed:

POST-SUBMIT HTML
HTML to be rendered in addition to the Post-Submit Message.

However, it seems there's no way for me to grab the actual form data entered by the user and send it as part of this POST message to our server.

Is there a way to access the form data inside my javascript in the POST-SUBMIT HTML? Or is there another way to do this that I'm not thinking of?

Thanks!

Link to comment
  • 8 months later...
  • Replies 2
  • Views 1.3k
  • Created
  • Last Reply

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.