Forums

Form and subform

cobayecrau 06 Feb, 2009
With the help of Bob I set up a form with many dropdown boxes and so on.

At the botton of this form I wish to put two "submit" buttons

1) The first time the user fills the whole form and click "submit1" button
all data are stored within the chronoform table.

I wish to reload the same form, but with some fields in the header prepopulated with previous data and a counter for the form (i=i+1)

ie :
Phase 1
header1: aaaa
header2: bbbbb
header3: form1
data1 :qqqqq
data2 :rrrrrrr

<SUBMIT1>

Phase 2
header1:aaaa
header2:bbbbb
header3: form2
data1 : to fill
data2: to fill

<SUBMIT1>

And for saving the last form and leaving I wish to use a <SUBMIT2> button

Is there somewhere on the forum such a thing ?
Max_admin 06 Feb, 2009
Hi Patrice,

try to write this line in the "onsubmit after email" box :
<?php
showform($_POST);
?>


and enable "republish data" under the "anti spam" tab!

Regards

Max
Max, ChronoForms developer
ChronoMyAdmin: Database administration within Joomla, no phpMyAdmin needed.
ChronoMails simplifies Joomla email: newsletters, logging, and custom templates.
GreyHead 07 Feb, 2009
Hi Patrice,

Yes, there are several examples of this kind of multi-page form in the forums. I think I posted one earlier this week.

Bob
cobayecrau 08 Feb, 2009

Hi Patrice,

try to write this line in the "onsubmit after email" box :

<?php
showform($_POST);
?>


and enable "republish data" under the "anti spam" tab!

Regards

Max



OK for the showform, This produce a kind of loop. But I don't use any antispam and the "republish data" option does not fit with what I wish

I can try an other dynamic
On form where I fill the persistent data and a loop with a form containing the persisitent data (readonly) and the fields I want to fill in
cobayecrau 08 Feb, 2009

Hi Patrice,

Yes, there are several examples of this kind of multi-page form in the forums. I think I posted one earlier this week.

Bob


I looked for these examples but I found nothing, sorry.
GreyHead 08 Feb, 2009
Hi Patrice,

See here for example - a search for posts with 'Multi' and author greyhead will find more.

Bob
This topic is locked and no more replies can be posted.