Hi,
I'm trying to use data entered on a previous page of the same form to
a) display it in text using custom code (eg "tell us more about {company_name}).
b ) Each page saves to a different table and I want to copy some data from one table to another by putting it in the field value of a hidden field (eg copy company_name to table2_companyname)
I've followed the instructions here & here .
I've tried using the formats:
I've checked spelling and tested with different forms or different variables without success - all of them just display/save the exact text I entered not replacing it with the name.
However, using {company_name} when sending an email to myself works fine. And the company_name field is saved in my database OK, and it displays fine when I use debug or custom code with
Any suggestions? (sorry to ask so many questions!)
Thanks🙂
Alex
I'm trying to use data entered on a previous page of the same form to
a) display it in text using custom code (eg "tell us more about {company_name}).
b ) Each page saves to a different table and I want to copy some data from one table to another by putting it in the field value of a hidden field (eg copy company_name to table2_companyname)
I've followed the instructions here & here .
I've tried using the formats:
company_name
{company_name}
$form->data[company_name]
$form->data['company_name']
I've checked spelling and tested with different forms or different variables without success - all of them just display/save the exact text I entered not replacing it with the name.
However, using {company_name} when sending an email to myself works fine. And the company_name field is saved in my database OK, and it displays fine when I use debug or custom code with
<?php
pr($form->data);
?>
Any suggestions? (sorry to ask so many questions!)
Thanks🙂
Alex