Hey
I was wondering if this is possible, having tickboxes at the end of the form that when you choose one it will send the form to that person.
eg. fill for out, has 3 tickbox at the end, ones admin, ones manager, ones recepionist. you tick the one you want to send the email to.
Not sure if possible but just wanted to know.
Thanks
I was wondering if this is possible, having tickboxes at the end of the form that when you choose one it will send the form to that person.
eg. fill for out, has 3 tickbox at the end, ones admin, ones manager, ones recepionist. you tick the one you want to send the email to.
Not sure if possible but just wanted to know.
Thanks
Hi Benny,
It's certainly possible with some PHP in the OnSubmit before box. Basically you'd look up the addresses in some kind of table and add them to the email to or ccemail entries.
Bob
It's certainly possible with some PHP in the OnSubmit before box. Basically you'd look up the addresses in some kind of table and add them to the email to or ccemail entries.
Bob
Hi Benny, which Chronoforms version do you have installed ?
Hi Benny,
first this code is for V3.0 stable, I think it will work with beta 2
assuming the 3 boxes has 3 different names box1,box2,box3 and that you have some TO email setup on this email and its the first email in the list of emails setup!
at the onsubmit before code box add this :
however if you have a radio button group which will select one button only :
Regards
Max
first this code is for V3.0 stable, I think it will work with beta 2
assuming the 3 boxes has 3 different names box1,box2,box3 and that you have some TO email setup on this email and its the first email in the list of emails setup!
at the onsubmit before code box add this :
if(JRequest::getVar('box1'))$emails[0]->to .= ',manager1@domain.com';
if(JRequest::getVar('box2'))$emails[0]->to .= ',manager2@domain.com';
if(JRequest::getVar('box3'))$emails[0]->to .= ',manager3@domain.com';
however if you have a radio button group which will select one button only :
if(JRequest::getVar('box1'))$emails[0]->to .= ',manager1@domain.com';
Regards
Max
lets simplify it, create one email only and at the TO field add "youremail@yourdomian.com" then enable the email and add my code below and save and test!
This topic is locked and no more replies can be posted.