In my form I can choose a certain region - AB, BC, SASK, MAN (they are currently set as check boxes) When I choose a region and fill out the form I want that region to get the email. So If I choose AB as my region then the form will get sent to ab@email.com. If I choose AB and BC as my region then the form will get sent to ab@email.com and bc@email.com.
am I able to do this by somehow setting the variables in the "Dynamic" part of the send email event?
Thanks
Penny
I am just wondering if anyone had a chance to look at this.
Thanks
Penny
Bob,
Thanks for your reply. I installed the action through the Chronoforms action tab and it said that it installed successfully.
The directions that you added are unfortunately not that clear. I am going to assume that I am to use the email [GH] action in the Onsubmit.
These are the setting that I have
[attachment=0]email.jpg[/attachment]
[attachment=1]email1.jpg[/attachment]
Hi Penny,
I can't see from here what option values you have in the drop-down and you don't seem to have edited the PHP to account for the need to send to more than one email address in some cases?
Please drag a Debugger action into the On Submit event, then submit the form and post the debug - including the 'dummy emails' results here.
Bob
Bob
I have since changed my select boxes to a "Group Select"
Penny
Hi Penny,
As you can see in the Debug output the email_to_use variable is empty. This is probably because you've switched to use a multi-select checkbox group but haven't updated the Custom Code to work with the array that this returns - you can see the values that has in the Debug Ouput.
Bob
Any help on this?
Thanks
Penny
Hi Penny,
It looks as though you are still using the same PHP - and that is only returning a single email address. You need to update it to return an array or a comma separated list if you want to add more than one To Email address.
Bob