hello i use an old chronoform i know but i can't change
is it possible to add php code in email template to change some information on fly ?
regards
Hi micker,You can use PHP in a Custom PHP action before the Email action to build custom for data that you can
then include in the email.
Bob
cool did you have a small tuto or documentation about this ?
for now i have a field {extensions}
and i want to create some small php check to return good result in email ?
regards
Hi micker,
What exactly do you need to do?
Bob
ok just to be sure
1 i create a custom code block
2 drag and drop in on submit event
and my code ?
exemple
<?php
if ( !empty ($form-data['extensions']) ) {
$form->data['extensions'] = $form->data['extensions'];
}else {
$form->data['extensions']="pas d'extensions";
}
?>
my user want a value in his email if $form-data['extensions'] is empty