I am creating a simple form that has a radio button with two options for the sender to choose from. Which ever option they select provides the email address that is used in the Dynamic To field of the Email event. When I submit the form I get, "Notice: You must provide at least one recipient email address." Do you know why I can't have email addresses as the values for radio buttons?
Forums
radio buttons with email addresses as values
H fullfusion,
IT should work OK though I wouldn't do it that way because it's not good practice to have email addresses in the displayed page HTML.
Please drag a Debugger action into the On Submit event, then submit the form and post the debug - including the 'dummy emails' results here.
Note: if you are using the Easy Wizard you may need to switch to the Advanced Wizard to do this; if you want to continue to use the Easy Wizard please make a copy of your form first and add the Debugger action to the copy.
Bob
IT should work OK though I wouldn't do it that way because it's not good practice to have email addresses in the displayed page HTML.
Please drag a Debugger action into the On Submit event, then submit the form and post the debug - including the 'dummy emails' results here.
Note: if you are using the Easy Wizard you may need to switch to the Advanced Wizard to do this; if you want to continue to use the Easy Wizard please make a copy of your form first and add the Debugger action to the copy.
Bob
Hi Bob,
I'm using the Advanced Wizard. The email addresses are not in readable form in the HTML code. ChronoForms is automatically cloaking them.
Here's the debug info. It says that the form was successfully sent, but I'm not receiving it and, as you can see below it also says invalid address. I'm not sure how to interpret those two conflicting comments.
I'm using the Advanced Wizard. The email addresses are not in readable form in the HTML code. ChronoForms is automatically cloaking them.
Here's the debug info. It says that the form was successfully sent, but I'm not receiving it and, as you can see below it also says invalid address. I'm not sure how to interpret those two conflicting comments.
Invalid address: This email address is being protected from spambots. You need JavaScript enabled to view it. Data Array:
Array
(
[chronoform] => contactus
[event] => submit
[Itemid] => 138
[option] => com_content
[view] => article
[id] => 41
[Name] => Meriadoc Brandybuck
[Email] =>
mb@theshire.org
[Subject] => Need cook
[Message] => Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.
[Office] =>
MY EMAIL ADDRESS
[chrono_verification] => 2fpbq
[input_submit_5] => Send
[4c5ad18e1e36d88acb9c814fb0467b17] => 1
)
Validation Errors:
Array
(
)
Debug Data
Core Captcha
Passed the core captcha check!
email
4
Result An email has been SENT successfully from (Meriadoc Brandybuck) mb@theshire.org to MY EMAIL ADDRESS
Body
Web Site Contact Form
Note: this was only sent to your office.
Name Meriadoc Brandybuck
Email mb@theshire.org
Subject Need cook
Message Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.
Submitted by MY IP ADDRESS
Attachments array ( )
redirect_user
redirect_user_target_url: /contact-us-thank-you
Redirect URL (click to continue):
/contact-us-thank-you
Hi fullfusion,
ChronoForms doesn't cloak emails - it's the Joomla! Email cloaking plug-in doing that. It looks as though an extra carriage return is being added before the email addresses. I'd be surprised if that caused the problem but it might. Try turning the Email Cloaking plug-in off temporarily and see if that fixes the problem.
Bob
ChronoForms doesn't cloak emails - it's the Joomla! Email cloaking plug-in doing that. It looks as though an extra carriage return is being added before the email addresses. I'd be surprised if that caused the problem but it might. Try turning the Email Cloaking plug-in off temporarily and see if that fixes the problem.
Bob
Looks like you are right, Bob. Turning off the email cloaking allows the form to send as is, no problems. That obviously opens me up to the problem you mentioned right off which is having email address show in the HTML. I like having the radio button selection determine where the form sends to as opposed to having two submit buttons. It seems like it wouldn't be too difficult to use PHP to add those email values in during the form processing, but my PHP skills are lacking. Any suggestions on how I might be able to accomplish that?
To anyone looking for an answer to this, I ended up using Bob's event switcher action and based the actions off of which ever radio button was chosen when the form was submitted. Get more details on the event switcher here. http://www.chronoengine.com/forums/index.php?option=com_chronoforums&cont=posts&p=259856
This topic is locked and no more replies can be posted.