I have a multipage for
each page has a Multi Page with reset data set to no
--pg 1---fields
name
address
etc....
hidden cf_id
hidden user_id
hidden transaction
On Submit
--DB Save to table
--Debugger
--HTML (render p2)
On p2 event
--Multi Page
--Display Message
--Debugger
notice that the cf_id is now blanked out????
each page has a Multi Page with reset data set to no
--pg 1---fields
name
address
etc....
hidden cf_id
hidden user_id
hidden transaction
On Submit
--DB Save to table
--Debugger
Array
(
[id] => 206
[class] => 2
[CCTRegistration3] =>
[class_id] => 2
[classname] => Catalyze Coach Training (Jan-Jul 2017)
[classdescription] => 26 week professional certification program in coaching for mission and ministry leaders
[classtype] => CCT-0
[wk1] => 08-01-2017
[cost] => 995.00
[notes] => please download the welcome packet
[chronoform] => CCTRegistration3
[event] => submit
[FirstName] => tom-30
[LastName] => thumb
[Email] => steve@carbondalecoc.com
[Phone] => 6183193420
[address] => 388 Pump House Rd
[address2] =>
[city] => Murphysboro
[state] => Il
[zip] => 62966
[button72] => Next Page
[cf_id] => 51
[user_id] =>
[transaction] =>
[paid] =>
[choice] => Create
)
--HTML (render p2)
On p2 event
--Multi Page
--Display Message
--Debugger
Array
(
[id] => 206
[class] => 2
[CCTRegistration3] =>
[class_id] => 2
[classname] => Catalyze Coach Training (Jan-Jul 2017)
[classdescription] => 26 week professional certification program in coaching for mission and ministry leaders
[classtype] => CCT-0
[wk1] => 08-01-2017
[cost] => 995.00
[notes] => please download the welcome packet
[chronoform] => CCTRegistration3
[event] => loginornew
[FirstName] => tom-30
[LastName] => thumb
[Email] => steve@carbondalecoc.com
[Phone] => 6183193420
[address] => 388 Pump House Rd
[address2] =>
[city] => Murphysboro
[state] => Il
[zip] => 62966
[button72] => Next Page
[cf_id] =>
[user_id] =>
[transaction] =>
[paid] =>
[choice] => Create
)
notice that the cf_id is now blanked out????
Hi t3living,
I can't tell where the first Multi Page action is - it has to be after the DB Save if you want to include the value of cf_id.
Bob
I can't tell where the first Multi Page action is - it has to be after the DB Save if you want to include the value of cf_id.
Bob
there is a Multi Page at the start of p1 (clears session), then at the start of p2. the DB Save is in between. the odd thing is that all the form data is retained except the cf_id.
I added additional Multi Page elements and the data is retained. so now every event in the setup has multiple Multi Page elements, one to start the event and one at the end of the event before a transition to new event. thanks for your help
I settled too soon. I am still losing form data.
I have a sequence of events where I register a new joomla user based on form data
[list=]
[*]Joomla registration
[*]on success event
[*][*]custom code
shows User ID = 1014 and cf_id=70
[*]DB Save (to put the joomla userid into db) ...works fine
[*]custom code
[/list]
I have a sequence of events where I register a new joomla user based on form data
[list=]
[*]Joomla registration
[*]on success event
[*][*]custom code
<?php
$form->data['user_id'] = $form->data['_PLUGINS_']['joomla_registration']['id'];
echo "User ID = ".$form->data['user_id']." cf_id=".$form->data['cf_id']."<br>";
?>
shows User ID = 1014 and cf_id=70
[*]DB Save (to put the joomla userid into db) ...works fine
[*]custom code
<?php
echo "immediately after db save of joomla id <br>";
echo "cf_id=".$form->data['cf_id']."<br>";
echo "user_id=".$form->data['user_id']."<br><hr>";
?>
But at this point the user_id = 1014 is correct, but the cf_id = 0, even though the db record is updated
[/list]
Hi t3living,
Had to tell without more info. What is the Primary Key column of the table you are saving to? If that is also cf_id then it might be getting confused.
What do you see if you add a DeBugger immediately after the DB Save, that should show you the values of the $form->data array at that point, and the database query that has been run.
Bob
Had to tell without more info. What is the Primary Key column of the table you are saving to? If that is also cf_id then it might be getting confused.
What do you see if you add a DeBugger immediately after the DB Save, that should show you the values of the $form->data array at that point, and the database query that has been run.
Bob
This topic is locked and no more replies can be posted.