I've used a component called easycontact which allows me to present a form that a web visitor can select who they want to contact via dropdown and the form results is sent to that individual. In other words, I have 6 contacts and 6 different emails on one form, which is neat.
My client wants to have a second form like that on the same website with a different group of people but unfortunately we can only use one component.
Is there a way to create a form for multiple recipients?
Many thanks.
Hi deafbiz,
Yes, I think this is straightforward, You just need to set up a select field in your form html and put the name of that field in the 'Email field' field on the 'General' tab.
In a rush now, I can tell you more later if you need it.
Bob
Just to make sure we're on the same page.
Drop Down Menu shows
Grade 1 Teacher
Grade 2 Teacher
Grade 1 Teacher email is [email]grade1@email.com[/email]
Grade 2 Teacher email is [email]grade2@email.com[/email]
A parent of Grade 1 student wants to send email to Grade 1 teacher, so she selects Grade 1 pulldown, fills out the form and click on the submit button.
Only Grade 1 gets the email, no one else.
If you can solve this, I'll buy the license. I know I'm not the only one wishing for this function. Someone is planning a multiple recipients function in Google's Summer of Code and there were two websites offering two complicated solutions.
So if you can solve this, you've got it made!
Already your component is a "must have"!
Many thanks,
JSG
Hi JSG,
Look at this code for a 2 recipients only dropdown but you can make it of 200 if u like😉
<select name="recipients">
<option value="grade1@email.com">Grade 1 Teacher</option>
<option value="grade2@email.com">Grade 2 Teacher</option>
</select>
after you have this at your code you will need to insert at the "EMAIL FIELD" field (take care, the field is called "email field") in the "form edit page", the dropdown name, which is : recipients
Does this make sense ? too easy to do but may confuse when I try to explain it, please let us know!
Cheers
Max
Max
ChronoForms developer...
Did you try ChronoMyAdmin for managing your Joomla database tables ?
I followed your instructions and I did get a working form!
However, I see one major problem. The email addresses can be seen in the browser source. That's a big no-no due to spamming.
So need to work on the second part. How to get this form to work while hiding the emails from the public?
JSG
I corrected the forms as you said, and the form works on the screen and hid the emails.
I first tested with "On Submit code - before sending email: -
no email results
I then tesed with "On Submit code- aftr sending email: -
no email results either.
What happened?
At least the form works and I successfully redirected to a Thank You Page.
I'm getting close, right?
Thanks,
JSG
Hi deafbiz,
Hmm looking at my code again it adds an extra email address. If you don't already have one then it probably breaks. I can't go back and hack my code until later. Please will you try a little test - add a valid e-mail address in the 'Email Address(es)' field on the 'General' tab and see if that does the trick.
I'll take another look later this afternoon.
Bob
Okay, got it working.
One problem, and hopefuly the final problem.
I added my name and email address on the list as a way to test. When I filled out the form, I got the email results.
So I asked another person on the list to fill out the form and select her name on the drop-down menu.
I got the email, not her.
What does that tell you?
JSG
Hi JSG, may be it went to her bulk folder ? are you sure emails are without any spaces ?
Max
ChronoForms developer...
Did you try ChronoMyAdmin for managing your Joomla database tables ?
Yes, I asked her to check.
I'm gonna test with another email address and keep you posted. I know we're very close to this.