Forums

Dynamic Email To/From and Checkbox Values Joomla 3.0

bgareth2 06 Apr, 2013
Hello,

I am having some problems and i'd be very grateful for help with these:

1) I cannot set up a Chronoforms Email to provide a dynamic Email address specified in the form to be completed as the "from" Email address of the form. I am having the same problem with the First Name, Surname provided in completing the form coming up as the name of the person who the form is received from in the notification Email.

2) The Email address is not showing within the form notification Email: it is coming up with the value "1" instead.

3) Checkboxes that are ticked do not come up as "ticked/unticked" or "yes/no". Instead they are coming up with the value "1".

4) The captcha is not displaying as an image and should the captcha be ticked as "required".

Thanks for your assistance. The Form is available at <!-- w --><a class="postlink" href="http://www.bpbuk.org.uk">www.bpbuk.org.uk</a><!-- w --> and by selecting: Contact Us- General Enquiry.

Kind Regards,

Beanie.
GreyHead 06 Apr, 2013
Hi Beanie,

Please post a link to the form so I can take a quick look. The Contact Us link on the site does nothing.

1) Please see this FAQ

2) I've no idea.

3) Checkboxes have whatever value you give them in the Options box. What have you used?

4) How is the Captcha displaying? Please see this FAQ. Setting the Captcha required helps make sure that the user enters it.

Bob
bgareth2 06 Apr, 2013
Hello Greyhead :-)

Thanks once again for taking the time to reply to my posts.

What you have highlighted is a secondary issue, when I went to bed last night (or this morning, woops!) the drop down form list was working - it was the case that you could hover on "contact us" and then a drop down with three different form links would appear. I set the menu as a system links - external URL, set the value as # and then added contact form links for each of the three forms under the parent - "Contact Us" but these have stopped working.

I'm not quite sure why though..

Thanks and Kind Regards,

Beanie.
bgareth2 12 Apr, 2013
Hello,

I have managed to sort out the menus displaying but I still can't set up the dynamic Email "from" and "reply to" fields. I want to use the first name submitted on the form, then the surname submitted on the form, do I use commas or quotation marks, what is the format? I also want to take the Email address submitted on the form and for these values to appear when a receiver hits the reply button in their browser.

At the moment the Emails I receive are from "Root User" and in the checkbox groups that are Emailed through, the field name as opposed to the values "yes" or "no" are received. How do I fix this?

I appreciate this topic is getting old so any replies from anyone would be gratefully received.

Kind Regards and thanks,

Beanie.
GreyHead 12 Apr, 2013
Hi Beanie,

Please see this FAQ for the Email names.

Please see this FAQ for the Email to the admin, you can use the Dynamic Reply To Name and Email boxes to set the reply to address.

Please see this FAQ for handling checkbox groups.

Bob
bgareth2 13 Apr, 2013
Hello Greyhead, thanks for your message.

This is what I have placed in the Custom Code:

<?php
$form->data['from_name'] = "{$form->data['first_name'] ['Surname']}";

{$form->data['from_address'] = "{$form->data['Email_Address']}";

$form->data['subject'] = "{$form->data['first_name'] ['Surname']} has sent you a general enquiry from the Bournemouth and Poole Bipolar UK Website.";
?>


In the dynamic Email settings, I have left the static values blank for the following:

1. Subject
2. from name
3. from email

Instead I have added to the dynamic Email settings the following values:

1. dynamic subject "subject" (without quotes)
2. dynamic from name "from_name" (without quotes)
3. dynamic from email "from_address" (without quotes)
4. dynamic reply to name "from_name" (without quotes)
5. dynamic reply to email "from_address" (without quotes)

When I received the form by Email, it said "Default Subject" (without quotes)and the from Email address and from name were not present.

On the thank you message, it displayed the error message above the thank you message as follows:

Parse error: syntax error, unexpected $end in /home/bpbuk/public_html/administrator/components/com_chronoforms/form_actions/custom_code/custom_code.php(19) : eval()'d code on line 10


Any further help would be appreciated.

Thanks.
GreyHead 18 Apr, 2013
Hi bagreth2,

I answered this in your other thread here

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