Hi, are you on the newest version of chrono forms?
if yes this is what you need
<?php
$form->data['subject_1'] = "You have received a message from {$form->data['name']} {$form->data['surname']} today";
?>
"subject_1" is what you put into your Dynamic subject field. "name" and "surname" are the names of textfields of your form.
You can do that as many times and for whatever you wish. You can simply create new "variables" in my case "subject_1" and make them show what ever you want. be it plain text or the content of several form fields.
In case anybody is interested. here is my code which checks the value of some fields, checks the file ending of a link, checks the beginning of a link and according to that sets subject, sender, from, etc. etc. to specific values. it's a conditional sending of an email with multiple values in several dynamic fields.
<?php
$form->data['filetype'] = substr($form->data['demourl'], -3, 3);
//get the only the 3 letters of the ending of the link field
$form->data['filetype2'] = substr($form->data['demourl'], 0, 21);
//get the first 21 letters of the link field (demourl)
if( $form->data['length'] == "ok"
&& $form->data['representative'] == "yes"
&& $form->data['filetype'] == "zip"
|| $form->data['filetype'] == "mp3"
|| $form->data['filetype'] == "m4a"
|| $form->data['filetype'] == "rar"
|| $form->data['filetype'] == "oad"
&& $form->data['filetype2'] == "http://soundcloud.com" ){
//check if "representative has been checked "yes" and length "ok", check if file ending zip, mp3, m4a or rar or that the link starts with sound cloud and ends with "oad"
// set receiver to this address
$form->data['email1'] = "webreqxxxx@sxxxxx.com";
$form->data['rejected'] = "Demo Accepted";
$form->data['bccadress'] = "norepXXXX@XXXXXXX.com";
$form->data['subject_1'] = "Real Demo from {$form->data['artistname']} in the house";
$form->data['thanks'] = "Thank you for your message. Your demo has been accepted.";
$form->data['sender_1'] = "{$form->data['artistname']} - {$form->data['firstname']} {$form->data['name']}";
$form->data['email_from'] = "{$form->data['email']}";
} else {
$form->data['email1'] = "{$form->data['email']}";
$form->data['bccadress'] = "reXXXXXX@XXXXXX.com";
$form->data['rejected'] = "We are sorry. The demo that has been submitted is either too short, too long, not representative or not a direct link to either a zip or mp3 file. Therefore has been rejected. Did you use sendspace? Well, we do not accept that";
$form->data['subject_1'] = "Demo Rejected";
$form->data['thanks'] = "Thank you for your interest. However your demo is either too long, too short, not representative or not a direct link to either a zip or mp3 file. Therefore has been rejected. Please read the guidelines carefully. Did you use sendspace? Well, we do not accept that";
$form->data['sender_1'] = "Our name";
$form->data['email_from'] = "nxxxxx@xxxxxxx.com";
}
?>
If the sender does not send us the link as we want it and doesn't answer the trick questions right he will get the email back to himself and is displayed a message saying blabla. If he does as we wish, we get the message.