Forums

Multi page form & email

GavinErickson 21 May, 2009
Hi there,

I'm building a two page form with your most excellent component.

I've got a mother form, and two child forms set up using the multipage plugin, they are accessible, and I've set up an email (in the mother) that includes fields from both child forms. However, the data from the first page seems to be lost somehow, and only the data from the last page makes it onto the email.

When i hit my "next button" on the first page, i get this in debug:

1. Form passed first SPAM check OK
2. Form passed the submissions limit (if enabled) OK
3. Form passed the Image verification (if enabled) OK
4. Form passed the server side validation (if enabled) OK
5. $_POST Array: Array ( [text_1] => test1 [text_2] => test2 [text_3] => test3 [text_4] => test4 [text_5] => test5 [button_1] => Submit [aaf08617f8d3aacc4373f93a55a7f32f] => 1 )
6. $_FILES Array: Array ( )
7. Form passed the plugins step (if enabled) OK



Looks like its receiving the input ok, as i get a similar message on the second page, and the second page's fields appear in the email.

I assume i have to add some code in one of "Form Code" boxes, but having scoured this forum for a couple of hours i can't find it. I'm using RC5... Or is it something daft - i've only got the multipage plugin enabled on the mother page for instance.

I'd also like to save the data from both pages into one table - how is this possible?
GreyHead 21 May, 2009
Hi GavinErickson,

I'm guessing a bit here as I haven't used multi-page in a real application.

I think you need both forms connected to the same database table - and the table must clearly have columns for all of the fields from both forms.

Not sure about the email data though, I don't know if the previous form data is held in temporary storage or has to be pulled back from the database. Max will have a quick answer.

Bob
Max_admin 21 May, 2009
Hi GavinErickson,

I think that there is a problem with the plugin which I will try to fix today and get back to you on it!


Regards,
Max
Max, ChronoForms developer
ChronoMyAdmin: Database administration within Joomla, no phpMyAdmin needed.
ChronoMails simplifies Joomla email: newsletters, logging, and custom templates.
GavinErickson 21 May, 2009
Thanks Max,

I'm not a programmer so am a bit stumped!

Also I'm not sure if i need onsubmit() on each page of the form, it doesn't seem to make any difference to data being retained.
GavinErickson 21 May, 2009
Hi Max,

thanks again for diving in, I've gone a little further and created a database for the multipage form, and connected the individual pages to the database. Again, as with the emails the data is only stored from the last page of the form. Thought this may be of interest.

thx,

Gavin
Max_admin 24 May, 2009
Hi GavinErickson,

I spotted the issue and fixed it, please contact me through the contact us page and I will send you an updated version!

Cheers
Max
Max, ChronoForms developer
ChronoMyAdmin: Database administration within Joomla, no phpMyAdmin needed.
ChronoMails simplifies Joomla email: newsletters, logging, and custom templates.
GavinErickson 31 May, 2009
Hi Max,

the data is now retained - thanks. However, when i'm trying to create new forms using cut & paste from BBedit or dreamweaver, i get an error: (attached screenshot)

[attachment=0]errorscreen.jpg[/attachment]

I've just purchased a license too, but imagine i shouldn't install the files that are going to be emailed? (since the ones you gave me are probably more up to date?)

thanks for your help,

Gavin
GreyHead 31 May, 2009
Hi Gavin,

I think there's a quote/escape problem somewhere. Please will you paste an example of the BBedit or DreamWeaver code here so I can test.

Bob
Max_admin 01 Jun, 2009
Hi GavinErickson,

looks like the upgrade didn't go well, please backup forms and uninstall then install the latest version OR add the "stylecode" field to the table jos_chrono_contact manually through phpmyadmin!

Regards
Max
Max, ChronoForms developer
ChronoMyAdmin: Database administration within Joomla, no phpMyAdmin needed.
ChronoMails simplifies Joomla email: newsletters, logging, and custom templates.
This topic is locked and no more replies can be posted.