Is it possible to have the email notification only send the results of the fields that were actually filled out and not the fields that were left empty on the form?
Thanks,
Tim
Thanks,
Tim
Hi Tim,
you will need PHP for every field in the email then, and you will an email template to do this, let me know if you are interested and I can show some example.
Regards
Max
you will need PHP for every field in the email then, and you will an email template to do this, let me know if you are interested and I can show some example.
Regards
Max
Thank you...I am interested and would love to see some examples of how to do this.
Thank you!
Tim
Thank you!
Tim
Hi Tim,
Assuming you have a field called "field_1" for example, to include it in the template you add this :
field_1 : {field_1}
to switch it on or off base on if its empty or not, you should use something like this :
thats it, do this for every field!
Regards
Max
Assuming you have a field called "field_1" for example, to include it in the template you add this :
field_1 : {field_1}
to switch it on or off base on if its empty or not, you should use something like this :
<?php if(JRequest::getVar('field_1')){ ?>
field_1 : {field_1}
<?php } ?>
thats it, do this for every field!
Regards
Max
Where do I include that PHP code, in the email template code? When I try copy and pasting that into the Email Template code I get an error that says:
Fatal error: Class 'JRequest' not found in /home/logochai/public_html/components/com_chronocontact/chronocontact.php(327) : eval()'d code on line 3
Am I putting that code in the wrong place?
Fatal error: Class 'JRequest' not found in /home/logochai/public_html/components/com_chronocontact/chronocontact.php(327) : eval()'d code on line 3
Am I putting that code in the wrong place?
Hi Tim, try adding at the top :
<?php global $mainframe; ?>
you have J1.5 and CF V3.0 stable, correct ?
<?php global $mainframe; ?>
you have J1.5 and CF V3.0 stable, correct ?
Sorry, no, I should have mentioned that. I am running Joomla! 1.0.14 RC1 Stable [ Daybreak ]. Chrono Forms version 2.3.9
ok, my code will be :
if($_POST['field_1']){
This topic is locked and no more replies can be posted.