Hope you can help,
I would like to have plain text (extra) in the dynamic subject
eg
Say field is called FIELDNAME, theh subject would be
Your request dated FIELDNAME
Hope you can help !!
I would like to have plain text (extra) in the dynamic subject
eg
Say field is called FIELDNAME, theh subject would be
Your request dated FIELDNAME
Hope you can help !!
Hi SPABO,
You can build the value in the OnSubmit Before box
Then put subject in the Dynamic Subject box
Bob
Later: added a missing '
You can build the value in the OnSubmit Before box
<?php
$fieldname = JRequest::getString('fieldname', date('Y-m-d'), 'post');
JRequest::setVar('subject', 'Your request dated '.$fieldname);
?>
Then put subject in the Dynamic Subject box
Bob
Later: added a missing '
Bob,
I put in this in the OnSubmitbefore
and I get this error
I put in this in the OnSubmitbefore
<?php
$Wedstrijddatum = JRequest::getString('Wedstrijddatum', date('Y-m-d'), 'post);
JRequest::setVar('subject', 'Uw aanmelding van '.$Wedstrijddatum);
?>
and I get this error
Parse error: syntax error, unexpected T_STRING in /var/www/vhosts/golfparkspandersbosch-club.nl/httpdocs/components/com_chronocontact/libraries/customcode.php(64) : eval()'d code on line 3
Hi SPABO,
I missed a ' after post'
Bob
I missed a ' after post'
$Wedstrijddatum = JRequest::getString('Wedstrijddatum', date('Y-m-d'), 'post');
Bob
Excellent Bob!
In this way I could amend al the "emailboxes", simply by changing the text en subject, subject_1, etc
Just for my curiosity, why did you put , date('Y-m-d'), in the code ??
By pm is fine with me, eager to learn!!
In this way I could amend al the "emailboxes", simply by changing the text en subject, subject_1, etc
Just for my curiosity, why did you put , date('Y-m-d'), in the code ??
By pm is fine with me, eager to learn!!
Hi SPABO,
The date was to add a default value (today's date) in case the input from the form was empty. Just keeps the subject making sense.
Bob
The date was to add a default value (today's date) in case the input from the form was empty. Just keeps the subject making sense.
Bob
This topic is locked and no more replies can be posted.