I am still struggling to get emails to go to different email addresses based on selection values of either radio or drop-down menu values.
I apologize in advance as I am NOT a programmer and do not understand PHP.
But, can I use LOCAL VARIABLES in the EMAIL ACTION to send to different email addresses based on values selected for a field?
If yes, exactly how would I write the LOCAL VARIABLES?
DROPDOWN field name: REGION
Values are 1 through 9, each value has a different email address associated with it.
I want to look at the {data:region} and if it equals value [1], then have it go to abc@gmail.com
If {data:region} and if it equals value [2, then have it go to xyz@gmail.com
And so on.
I would certainly appreciate someone explaining this in layman's terms so I can get these last 3 forms up and working in CF7 so I can update to PHP 8. In CF6, I used a SWITCH and emailed recipient: SWITCH. Since there is no Switch in CF7 I would greatly appreciate some simple instructions so that I could follow it for the remaining forms I have to get done.
Best regards,
Donna
I apologize in advance as I am NOT a programmer and do not understand PHP.
But, can I use LOCAL VARIABLES in the EMAIL ACTION to send to different email addresses based on values selected for a field?
If yes, exactly how would I write the LOCAL VARIABLES?
DROPDOWN field name: REGION
Values are 1 through 9, each value has a different email address associated with it.
I want to look at the {data:region} and if it equals value [1], then have it go to abc@gmail.com
If {data:region} and if it equals value [2, then have it go to xyz@gmail.com
And so on.
I would certainly appreciate someone explaining this in layman's terms so I can get these last 3 forms up and working in CF7 so I can update to PHP 8. In CF6, I used a SWITCH and emailed recipient: SWITCH. Since there is no Switch in CF7 I would greatly appreciate some simple instructions so that I could follow it for the remaining forms I have to get done.
Best regards,
Donna