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...
  • Replies 1
  • Views 702
  • Created
  • Last Reply
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...

BeyondSpace - Squarespace Website Developer

🖼️ Lightbox Studio (Enable Pinch/Zoom on lightbox)
🗓️ Delivery Date Picker (Squarespace Date picker form field)
💫 Gallery block 7.1 workaround
🥳 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

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.