and before anything else, thanks alot for your amazing work and your nice comments on forum.
I have pain to learn how to use ChF V4, but step by step I get it, except this one : I need to add php results to the form datas and passing both to e-mail.
As red here :
- I am using Data to session / Session to data events around the onsubmit (see picture) and it works, datas are send to e-mails
[attachment=1]chrono.JPG[/attachment]
- Inside the "confirmation page" I am using the code below to add the php data into the form array ; I tested qith an echo and the data is in the array
$form->data['total'] = $total;
- but I cannot recall this data inside of e-mail ; it doesn't work if I am using a php call or the curly bracelet
{total}
<?php echo $form->data['total'];?>
both doesn't work.
I think the error could be in sequence I set in "Events" but I cannot get where. Thanks if you can see how to point me my error (and sorry for my poor english).
Antoine.
Edit --> I solved 😀 it by adding a "Custom code" element (set on "controller" mode) as a first event in the on Submit (see picture below), so the datas from form will be collected, extended calculations will be done THEN datas are send to the session and later can be called back.
[attachment=0]chrono2.JPG[/attachment]