Hello,
so I have a form where {firstname} and {lastname} are among the variables.
They appear fine in the html mail body and the thank you page.
Since the dynamic from field in the email action is not accepting "firstname lastname" I am trying to combine the both.
I added custom code in the onsubmit event as first action, it is set to controller mode.
I tried different aproaches, but I don't get it to work.... I also made a hidden field in the form with the variable "name".
Any suggestions?
Thanks in advance
so I have a form where {firstname} and {lastname} are among the variables.
They appear fine in the html mail body and the thank you page.
Since the dynamic from field in the email action is not accepting "firstname lastname" I am trying to combine the both.
I added custom code in the onsubmit event as first action, it is set to controller mode.
I tried different aproaches, but I don't get it to work.... I also made a hidden field in the form with the variable "name".
<?php
$_POST['name'] = $_POST['firstname'] & ." ". & $_POST['lastname'];
?>
<?php
$_POST['firstname'] = $firstname;
$_POST['lastname'] = $lastname;
$name = $firstname .' '. $lastname
$_POST['name'] = $name
?>
<?php
$_POST['firstname'] = $firstname;
$_POST['lastname'] = $lastname;
$name = $firstname .' '. $lastname
$form->data['name'] = $name
?>
Any suggestions?
Thanks in advance