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: SQSP User for 17 yrs. Circle Leader since 2017. I value honesty, transparency, diversity and good design ♥.
Work: Founder of SF Digital, building Squarespace Extensions to supercharge your commerce website. 
Content: Links in my posts may refer to SF Digital products or may be affiliate links.
If my advice helped, you can thank me by clicking one of the feedback emojis below. I love coffee too.

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.