but without success, maybe very simple, missing something
was trying to set up something like this:
user can toggle the form or option to select like user1 or user2
form1 goes recipient or user 1
form2 goes recipient or user 2
hope someone can put me in the right direction Thank you
What do you have so far? What exactly is not working (form sent to wrong recipient, wrong form displayed, âŚ)? What do you have in your formsâ process configs?
the signal form works fine, I was trying to set up multiple selection options
example:
user can toggle the form selection or option:
select Info
email should go to recipient info@mysite.com
If form selection or option:
select sales
email should go to recipient sales@mysite.com
When I test, it goes to default email on the system, I am able to add another recipient, but thatâs not what I want. I want info to go to info@mysite.com and sales go to sales@mysite.com
If I understand what youâre saying, you have a select with two options whom to contact. Depending on selected option, email should be sent to different recipient. If so, just use <option value="sales@mysite.com">Sales</option>
And in process field use something like
process:
- email:
to: "{{ form.value.contact_email|e }}"
I had looked at document, but was little confused, I think I was mixing something, but I will test and update if this works out Thank you
Dynamic email attribute
If you want for example to set the email.from field from a Form input, you can get its content and use it in this way:
from: "{{ form.value.email|e }}"
In this case, we get the field âemailâ from the form, and use it for the âfromâ attribute. This way the site owner will receive an email and will be able to directly reply to the email entered in the form.