Jump to content

Is there a way to dynamically change the email recipient of a form depending on one of the values?

Go to solution Solved by paul2009,

Recommended Posts

I was wondering if it's possible to have a form submit to different emails depending on the Enquiry Type?

image.thumb.png.ea232d4b8e9e86da93478268899f9ca6.png

For example, if the enquiry is "Ophthalmology Enquiry", it will send to abc@gmail.com. If the enquiry is "Home Delivery Enquiry", it will send to xyz@gmail.com, and so on.
 

Link to comment
  • Solution
13 hours ago, inserviosupport said:

Is there a way to dynamically change the email recipient of a form depending on one of the values?

No.

A Form Block can only have one fixed email recipient. Workarounds include the following:

  • You can provide links to different pages, each containing the same Form Block but configured to use a different email address. This doesn't require code.
  • By using code, you could place several Form Blocks on one page, each configured with a different email address. Someone could write some code (JavaScript)  to add a dropdown of options and selectively hide/show the relevant Form Block, depending on a user's selection.

Did this help? Please give feedback by clicking an icon below  ⬇️

About: Squarespace Circle Leader since 2017. I value honesty, transparency, diversity and great design ♥.
Work: Squarespace Developer and founder of SF Digital, building the features Squarespace didn't include™. 
Content: Links in my posts may refer to SF Digital products or may be affiliate links.

Catch up on all the release notes and announcements 2023 [for Circle members only]. There's a public version here too!
If I helped, you can thank me by clicking one of the emojis below. If you prefer, you can buy me a coffee.
Improve your online store with our extensions.

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.