Jump to content

Implement custom Form which send the result through Squarespace API

Recommended Posts

Hello :-)

For our web-page we want to have a "complex" form with several custom features:

  1. The form is on several tabs: I plan have HTML/CSS tabs and to hide/show them with JS (display=block or similar) until the user reach the end.
  2. Some elements are filled automatically: filling some elements trigger events (on-change),  with the consequence of calculating intermediate results and filling other inputs..


This was just to explain the context. The conclusion of those requirements is that the default "form-block" is not sufficient and that I would need to use a custom form in a "code-block".

Now, I would like the form result to submit to an e-mail or google-drive, exactly like form-block.

My question is: How to do this? How to submit the custom form result to an e-mail? (or google drive)

The obvious and ugly solution is to use a "normal" form-block, hide it with JS and use it internal sending for the purpose, but I wonder if I can use any direct API or some other better solution?

Link to comment
  • 7 months later...
On 7/15/2020 at 6:12 PM, Escain said:

Hello 🙂

For our web-page we want to have a "complex" form with several custom features:

  1. The form is on several tabs: I plan have HTML/CSS tabs and to hide/show them with JS (display=block or similar) until the user reach the end.
  2. Some elements are filled automatically: filling some elements trigger events (on-change),  with the consequence of calculating intermediate results and filling other inputs..


This was just to explain the context. The conclusion of those requirements is that the default "form-block" is not sufficient and that I would need to use a custom form in a "code-block".

Now, I would like the form result to submit to an e-mail or google-drive, exactly like form-block.

My question is: How to do this? How to submit the custom form result to an e-mail? (or google drive)

The obvious and ugly solution is to use a "normal" form-block, hide it with JS and use it internal sending for the purpose, but I wonder if I can use any direct API or some other better solution?

Squarespace api is still a mystery to most of us, so i think your approach is good enough...

Greeting, it's BeyondSpace, I am Squarespace dev focus on provide solutions to enhance feature that squarespace.com can't provide.
Feel free to check my current Squarespace Plugins Developement: Enable Pinch/Zoom on lightbox, Delivery Date Picker, Keyword Highlighter
If you find my answer fit your need, let's leave a like or upvote so others with the same issue can find their solution. Thank you

Link to comment

Create an account or sign in to comment

You need to be a member in order to leave a comment

×
×
  • 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.