Hello, I am struggling with the following:
This is what I have placed in the custom code:
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:
Any help would be appreciated,
Kind Regards,
Beanie
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 help would be appreciated,
Kind Regards,
Beanie