I am trying to enter the sender's name and some text into the subject line of emails submitted via our form. I get the text to fill in, but the name does not. Here is the code.
<?php
$form->data['subject'] = "Online Application from {$form->data['input_firstname']} ";
?>
what am i doing wrong?
Thanks
It is in a custom code action that is placed before the email action. If I understand correctly, at any rate. Image attached. I did read the FAQ several times . . . that is how I managed to get this far with it. :-)
The text from the code does populate the subject field, it is the dynamic info from the form that does not populate. What could cause that?
Thanks
Hi tjhaas,
Do you have a form input with the name input_firstname ?
Bob
Hi tkjhaas,
Please drag a Debugger action into the On Submit event, then submit the form and post the debug - including the 'dummy emails' results here.
Bob
Hi tjhaas,
I see an input with the name 'firstname' but not 'input_firstname'
Bob
Ah, thank you. It is working fine now.