Developer forum

Forum » Development » Option to choose recipient of contact-formular

Option to choose recipient of contact-formular


Reply
Hi,

I've a page with the module "Formularer, udvidet". It works fine, as long as I only want 1 recipient. But the thing is we need to give the users an option to choose between which department they want to contact.

I though of something like:
<form>
<select name="ToEmail">
<option value='test@mail.dk'>Marketing</option>
<option value='mail@test.com' selected>Administration</option>
</select>
--DW FORM TAGS--
</form>

Is it possible to hardcode this into the template and force the system to use the selected value as recipient of the contact form?


Thanks in advance

Replies

 
Jeppe Eriksson Agger Dynamicweb Employee
Jeppe Eriksson Agger
Reply
It is possible to do if you you the Save event called "Send a receipt via e-mail". This event gives you the option to select a field from your form who's value should be used as the email address.

- Jeppe

 

You must be logged in to post in the forum