Hi,
I have a multi-page form with 2 children and a mother form. The first form saves its data to an array which is then added to the $_POST array for the second form and the whole lot is saved to 2 tables in the same DB by the second child form. That works fine when I just link them together with no confirmation page.
The mother form is connected to the two tables and when the confirmation plug-in is turned off, the data just slips right into the DB where it should be. The child forms are NOT connected to their respective DB tables. I want to save the data at the end of the process so that I don't get any orphan records if the process is abandoned halfway through.
I want the user to be able to see the data from the form they just completed and be able to go back and correct it if necessary.
However, when I add a confirmation page on the first child form, I get weird results: the form displays the confirmation template, with the data and the Next, Back buttons, BUT displays the same form again beneath that. If I click the Next or Back buttons, it reloads the form again, empty and with none of the confirmation template.
Here's a tidbit that's going to ring someone's bells: the Chronoforms credits "Powered By ChronoForms - ChronoEngine.com" appears twice at the bottom of the confirmation page.
Debug messages from the confirmation plugin are, at the top of the page:
and just above the second instance of the form:
Obviously I am trying to torture this into doing something in a way it doesn't like. Any suggestions on where to look and what for are most welcome.
Thanks.
Justin
I have a multi-page form with 2 children and a mother form. The first form saves its data to an array which is then added to the $_POST array for the second form and the whole lot is saved to 2 tables in the same DB by the second child form. That works fine when I just link them together with no confirmation page.
The mother form is connected to the two tables and when the confirmation plug-in is turned off, the data just slips right into the DB where it should be. The child forms are NOT connected to their respective DB tables. I want to save the data at the end of the process so that I don't get any orphan records if the process is abandoned halfway through.
I want the user to be able to see the data from the form they just completed and be able to go back and correct it if necessary.
However, when I add a confirmation page on the first child form, I get weird results: the form displays the confirmation template, with the data and the Next, Back buttons, BUT displays the same form again beneath that. If I click the Next or Back buttons, it reloads the form again, empty and with none of the confirmation template.
Here's a tidbit that's going to ring someone's bells: the Chronoforms credits "Powered By ChronoForms - ChronoEngine.com" appears twice at the bottom of the confirmation page.
Debug messages from the confirmation plugin are, at the top of the page:
Posted: Array ( [empuniqueid] => phyLTvc [empgivenname] => Henrietta [empfamname] => Magic-Bones Hawhaw [edob] => 08/04/1991 [empregionbirth] => Jupiter and Mars [empcountrybirth] => Guam [empidcard] => 1010101010 [emppassportno] => 2020202020 [emppassportcntry] => Equatorial Guinea [button_7] => Next [2fedb9d9cef211898f00b8e7b7cf0425] => 1 [1cf1] => b0ec34b87e6bb7ecc2ea074a94291378 [chronoformname] => mothertest )
Files: Array ( )
Current step: 1
and just above the second instance of the form:
$params: JParameter Object ( [_raw] => stepscount=2 formsnames=employeeinfo,ayiempreport finalbuttonname=Finish stepsnavigation=1 debugging=1 onsubmit=before_email [_xml] => [_elements] => Array ( ) [_elementPath] => Array ( [0] => C:\xampp\Joomla1-5\libraries\joomla\html\parameter\element ) [_defaultNameSpace] => _default [_registry] => Array ( [_default] => Array ( [data] => stdClass Object ( [stepscount] => 2 [formsnames] => employeeinfo,ayiempreport [finalbuttonname] => Finish [stepsnavigation] => 1 [debugging] => 1 [onsubmit] => before_email ) ) ) [_errors] => Array ( ) )
formname: mothertest
Pages: Array ( [0] => employeeinfo [1] => ayiempreport )
Current step: 1
Session data: Array ( )
Obviously I am trying to torture this into doing something in a way it doesn't like. Any suggestions on where to look and what for are most welcome.
Thanks.
Justin