Forums

2 fields as email from name

Samifighter 07 Apr, 2011
Hello,

i have a form, where the user has to enter his firstname and his lastname seperately. Now I want, that the email from name contains his firstname and his lastname. How to do this? I have alreadey entered both fieldnames in the dynamic from field, but then no name is shown.
GreyHead 07 Apr, 2011
Hi Samifighter ,

Which version of ChronoForms are you using? The answer is different for v3 & v4

Bob
GreyHead 07 Apr, 2011
Hi Samifighter,

Drag a Custom Code Action to the On Submit Event, click the spanner icon and add this to the code box:
<?php
$form->data['name'] = $form->data['firstname'].' '.$form->data['lastname'];
?>


Bob
Samifighter 07 Apr, 2011
Thank you. Not only for the code but also for this great component.
This topic is locked and no more replies can be posted.