Hello
Every people
I have form work good , but i need change in the field dinamic suject into the mail template
I will like the dinamic suject are variable1 plus variable2
I try in the field
Dinamic Suject = variable1+variable2 => Dont work
Dinamic Suject = variable1,variable2 => Dont work
Dinamic Suject = variable1.variable2 => Dont work
note: the variables are the names the field in my form
Please help me
javier rios
Every people
I have form work good , but i need change in the field dinamic suject into the mail template
I will like the dinamic suject are variable1 plus variable2
I try in the field
Dinamic Suject = variable1+variable2 => Dont work
Dinamic Suject = variable1,variable2 => Dont work
Dinamic Suject = variable1.variable2 => Dont work
note: the variables are the names the field in my form
Please help me
javier rios
Hi javier,
The dynamic boxes only take a single input name. You need to create a new variable with the value you want using a Custom Code action (in CFv4) or the OnSubmit Before Email box (in CFV3):
Bob
The dynamic boxes only take a single input name. You need to create a new variable with the value you want using a Custom Code action (in CFv4) or the OnSubmit Before Email box (in CFV3):
<?php
$v1 = JRequest::getString('variable1', '', 'post');
$v2 = JRequest::getString('variable2', '', 'post');
$subject = $v1.$v2;
// use this line for CFv3
JRequest::setVar('subject', $subject);
// use this lien for CFv4
$form->data['subject'] = $subject;
?>
Then use subject in the Dynamic Subject boxBob
Hello is work thanks
This topic is locked and no more replies can be posted.