Developer forum

Forum » Templates » Send form to dynamic recipient

Send form to dynamic recipient

Nikki Strømsnes
Reply

 I have a form, which sends the result to an email, and in which you should be able to choose the recipient from a select. In the module settings, you may set it up so that the sender name and sender address are retrieved from the form – however this is not an option for the recipient address.

 

 

In the old module, the recipient address was stored in a hidden input field. I therefore made a javascript function, which basically took the value from my select and pasted it to that hidden field on blur. The field, however, is no longer available.

 

 

How would I go about this?


Replies

 
Jacob Bertelsen
Reply
This post has been marked as an answer

Hi Nikki,

Use DW7 forms.

Set up a dropdown, with a bunch of select options:
"hennings auto" / "henning@hotmail.com"
"Kong Web" / "krone1@nozebra.dk"
, and so forth.

On the module attached to the paragraph, check the box "Send a receipt via e-mail".
In the "Send a receipt via e-mail"-area, check the checkbox "Get from form", and select the dropdown with your names/emails, in the "Recipient e-mail"-dropdown.

Votes for this answer: 1
 
Nikki Strømsnes
Reply

Hi Jacob,

 

It works perfectly! You're so smart.

 

Not sure then, what the difference between "send form to email " and "send receipt" is. Anyhow, thanks for the help. 

 

You must be logged in to post in the forum