Forums

I need multiple-recipient form help

baxterdown 14 Sep, 2012
Hi Bob,

I created a multiple recipient form and I'm getting the following error when the form submits:


Notice

        You must provide at least one recipient e-mail address.

Please use the form below to contact any member of our staff.


Parse error: syntax error, unexpected T_CONSTANT_ENCAPSED_STRING, expecting ')' in /home/mgrgowit/public_html/new/administrator/components/com_chronoforms/form_actions/custom_code/custom_code.php(18) : eval()'d code on line 19


I thought it was because I am entering in the form dropdown element: John Doe=John Doe rather than
John [email]Doe=john@johndoe.com[/email] like the FAQ tutorial shows.

But I just tested the form with John [email]Doe=john@johndoe.com[/email] and I'm still getting the error.

I tried moving e-mail cloaking to run before chronoforms and I tried disabling e-mail cloaking altogether and nothing.

Can you please help me? I need the form to not show e-mail addresses in the dropdown -- only names.

I'm taking the liberty to PM you login information to the site as the client wants to go live today. So, we are disabling the form. :-)

As always, thanks so much in advance for your help!!!

Jose
GreyHead 15 Sep, 2012
Hi baxterdown,

Fixed I think. There were commas missing from the ends of two lines in the $emails array in he Custom Code action.

Bob
baxterdown 15 Sep, 2012
Hi Bob, good morning.

It didn't work๐Ÿ˜Ÿ I just tested it and this is what I got when I hit submit (I replaced below some data with "xxxxx" so I don't post personal information):

Data Array:

Array
(
[chronoform] => staff
[event] => submit
[Itemid] => 77
[option] => com_content
[view] => article
[id] => 72
[name] => Jose doing a test
[email] => [email]XXXXX@aol.com[/email]
[phone] => XXXXX
[recipients] => Gary XXXXX
[comments] => This is a test at 9:01am
[recaptcha_challenge_field] => 03AHJ_VuuxpcM-nagc9dsVAA9WGO1UOqdSWnRvPeoVjmJT9fU-GI9Z7OT019EEvFANmFX-SaCc7QzCwnZJMdcHvXUbax7JIMbDuBfNedjXsjW_rY69SksZvrImkZwSlSu6iQ9SpxHSHLGL0PXTV9HfPk0d_bGiCU4fpw
[recaptcha_response_field] => nalennt are
[input_submit_10] => Submit
[f4216a940b88ccdce814c3131d2b414d] => 1
[email_to_use] => XXXXX.com
)

Validation Errors:

Array
(
)

Thank you. Your information was submitted correctly. You will receive a confirmation e-mail shortly.
We will be in touch with you as soon as possible.
Debug Data

email
10
Result An email has been SENT successfully from (TentXXXXX)webcontact@XXXXX.com to [email]XXXXX@XXXXX.com[/email]
Body

The person listed below submitted the TentLogix website contact form. Please review the information in the comments section and take appropriate action.
Name Jose doing a test
Email Address [email]XXXXX@aol.com[/email]
Phone XXXXX
Recipient Gary XXXXX
Comments This is a test at 9:01am


Submitted by XXXXX.9.XXXXX.XXXXX
Attachments array ( )
11
Result An email has been SENT successfully from (XXXXX)webcontact@XXXXX.com to [email]XXXXX@aol.com[/email]
Body

Thank you for your interest in XXXXX. This e-mail confirms that we received your information. The appropriate party will be in touch with you as soon as possible. For your records, following is the information you submitted:
Name Jose doing a test
Email Address [email]XXXXX@aol.com[/email]
Phone XXXXX
Recipient Gary XXXXX
Comments This is a test at 9:01am


Submitted by XXXXX.XXXXX.XXXXX.229
Attachments array ( )



I'm leaving the form live in case you want to test. You can find it on the bottom of the Get to Know Us / Our Staff page.

Thanks!

Jose

Edit: -- P.S. I just looked at my e-mail and even though I am getting the error above, the form does submit.
GreyHead 15 Sep, 2012
Hi baxterdown,

That looks OK. What is the problem?

Bob
baxterdown 15 Sep, 2012
All that code is what shows on the front end when I submit the form. All I should be getting is the Thank you message.

Try submitting the form using the first recipient Gary Henxxx. I have it set to come to my e-mail for now. You'll see what I mean.

Thanks!
GreyHead 15 Sep, 2012
Hi baxterdown,

It looks as though I left a Debugger action in the on Submit event when I was testing, you can just delete it when you are done with it.

Bob
baxterdown 16 Sep, 2012
Hi Bob,

Yes, that was it! It works great now. As always, THANK YOU SO MUCH FOR ALL YOUR HELP!๐Ÿ˜›

Jose
This topic is locked and no more replies can be posted.