I have read EVERY post under the multi-page plugin tutorial and still can't quite get this! It's got to be something simple.
I have a multi-page form up and running and working great, but the second form won't display the cf_id value from the first. It's bringing over all the data so it must be there somewhere (and the data is saved into a new record after the first form is submitted), but it won't display.
Enter any any old thing in the first form to get to the second (no fields are required):
http://draft.masc.org/index.php?option=com_chronocontact&chronoformname=AdminSteps&user_id=92
You can see from the debug on the screen when you get to Part 2 that all the fields are available, although I don't see cf_id and no matter how I try to call it, it won't show up.
I used this in the second form:
<?php
$session =& JFactory::getSession();
$posted = $session->get('chrono_formpages_data', array(), md5('chrono'));
?>
And then later tried adding the form name, so 'chrono_formpages_data_AdminSteps' -- no difference. When I submit the second form, two records are created with two cf_ids. The data from the first form IS carried over -- everything BUT the cf_id!
Right now the DB Connection is turned on for all 3 parts (mother and 2 children) -- if I turn off the second/last DB connection as some posts suggested, e-mails still go out but the data from the second form doesn't get saved at all. If I turn off the DB connection on both children, e-mails still go out but no data gets saved to the database, even though the mother form has the DB connection turned on. The only way the data gets saved is for all 3 to have the db connection turned on ... but I get two records instead of one.
How do I get that cf_id to carry over??
I have a multi-page form up and running and working great, but the second form won't display the cf_id value from the first. It's bringing over all the data so it must be there somewhere (and the data is saved into a new record after the first form is submitted), but it won't display.
Enter any any old thing in the first form to get to the second (no fields are required):
http://draft.masc.org/index.php?option=com_chronocontact&chronoformname=AdminSteps&user_id=92
You can see from the debug on the screen when you get to Part 2 that all the fields are available, although I don't see cf_id and no matter how I try to call it, it won't show up.
I used this in the second form:
<?php
$session =& JFactory::getSession();
$posted = $session->get('chrono_formpages_data', array(), md5('chrono'));
?>
And then later tried adding the form name, so 'chrono_formpages_data_AdminSteps' -- no difference. When I submit the second form, two records are created with two cf_ids. The data from the first form IS carried over -- everything BUT the cf_id!
Right now the DB Connection is turned on for all 3 parts (mother and 2 children) -- if I turn off the second/last DB connection as some posts suggested, e-mails still go out but the data from the second form doesn't get saved at all. If I turn off the DB connection on both children, e-mails still go out but no data gets saved to the database, even though the mother form has the DB connection turned on. The only way the data gets saved is for all 3 to have the db connection turned on ... but I get two records instead of one.
How do I get that cf_id to carry over??