First I want to apologize for asking a question that has definitely been asked before. However, none of the solutions that were previously provided are working on my form.
I am ultimately trying to return the cf_id from the first database save into a hidden field on page 2 of a mult-page form and continue passing it to the end of the form in order to link multiple tables together.
To test this out I created a db save after the first page of the form is submitted, added a custom element to page 2 and attempted to print/echo the cf_id to the screen. Here is my code to echo:
<?php echo $formId.'test'; ?>
<?php $formId = $form->data['chronoform_data_cf_id']; ?>
All that appears on the screen is the text "test" without the cf_id. I used the debugger and of course cf_id is getting set in the data array ([chronoform_data_cf_id] => 97).
What am I missing?
I am ultimately trying to return the cf_id from the first database save into a hidden field on page 2 of a mult-page form and continue passing it to the end of the form in order to link multiple tables together.
To test this out I created a db save after the first page of the form is submitted, added a custom element to page 2 and attempted to print/echo the cf_id to the screen. Here is my code to echo:
<?php echo $formId.'test'; ?>
<?php $formId = $form->data['chronoform_data_cf_id']; ?>
All that appears on the screen is the text "test" without the cf_id. I used the debugger and of course cf_id is getting set in the data array ([chronoform_data_cf_id] => 97).
What am I missing?