Creating Multipage Forms

ddouglas , August 16 2010
d
ddouglas

Hello,

I am trying to create a Multi Page form without success. Here are the steps I am taking to do this:

1. Created a mother form called mother, nothing in it.
2. Created a form called form_1, just put one field in.
3. Created a form called form_2, just put one field in.
4. Created tables for form_1 and form_2.
5. Enabled Multi Page plugin on mother form. In number of steps, selected 2. Step form names, I entered form_1,form_2. Finalize button name Go and nav and debugging set to no.
6. Published all forms.

When I click on the mother form link, I get a blank page. If I click on the individual forms I see the fields. Am I missing a step? I followed the process in the help tab.

Thanks,

GreyHead

Hi ddouglas ,

That all sounds exactly correct.

Please check the Plugins tab. To be enabled the plugin must have a *green* bar (and probably all the others should be *red* bars).

Bob

d
ddouglas

Thanks, I forgot that step. Now when the form actually shows, I only see form_1, not form_2. I added a submit button on form_2 to write the data to the tables. Not sure if that was correct.

GreyHead

Hi ddouglas,

When you submit step 1 you should go to step 2

Bob

d
ddouglas

Hi Bob,

OK, so I should have submit buttons for each step, right? I'll try that.

Thanks for the quick response.

EDIT

I deleted everything and started fresh and everything is working as I want. I just need to relate the tables now.

GreyHead

Hi ddouglas,

I just need to relate the tables now



you can either do this step by step (that's my preference) or save everything at the final step. There are a couple of threads discussing this.


Bob

d
ddouglas

I tried both and the step by step is the way to go for me as well. Thanks for your help, everything is working as expected.

p
prdg1

So am I missing something. Where do I find the plug in at? I looked on the site and don't see it.

Also I'm trying to do something different with the multi page form. My client wants them to be able to enter in their personal information and then some information about some artwork they want to submit. Then they want the option to submit just that or add another art piece. I wanted to use the multi page form for this. Can it do that? Can they opt to submit or go to the next page to add another piece? If so, how can I do that. If it's explained in your "cookbook" I'll go ahead and buy it now. I actually just saw it and plan on buying it anyway because this truly is the best form tool out there for Joomla. :?:

UPDATE: BTW just got your E-Book.... I love it! This is so perfect especially for the advanced features BUT I don't think it answers my guestion about submitting part of the form or moving on to a part 2 page.

GreyHead

Hi prdg1,

Sorry. Multi-page forms with optional pages didn't make it into the book :-( Maybe I'll write it if we can work out how to do it.

I think it could be done using steps navigation to skip unwanted pages but I'm not certain.

Bob

p
prdg1

Oooh. Well add that to your new enhancements list. Hhhmmm well I'll try to see what I can do. I'm guessing then what I'm going to have to do is create a basic form and if they want to resubmit additional pieces, they'll have to go back to the form and resubmit the form again. I was just trying to avoid them having to re-enter their information. Thanks again. :D

BTW - any ideas on when another release of the tool with cool features is gonna happen?

GreyHead

Hi prdg1,

You can recall their info by setting a cookie or using the user session.

I know that Max has some code re-written but I think that he is waiting for Joomla 1.6

Bob

p
prdg1

Good idea. Yeah Joomla 6 ought to be interesting but the big thing is long as they can figure out a way to easily move our sites to that without issue and be able to use all the previous modules/components, then I'm in. But until then I'm quite happy with the 5 versions.

So I think what I've decided to do is those optional fields, I'm going to hide with a drop down feature. So they can click on "add additional artwork" and the fields will drop down and appear for them to complete and so on. Seems like the best option for now that way, since they aren't required fields, they can just hit submit if they don't want to add those items.

Thanks again.

GreyHead

Hi prdg1 ,

That sounds good to me.

Bob

j
joomla_tatsu

Hey everyone,

Was wondering if there is a way to have multiple page forms all point to the one db table?

If so, is it as simple as pointing all child forms to the one db table?

I'd imagine there would a have to be more to it then that, a way to keep the data entered in the previous forms associated with the one entry.

thanks for any help : )

GreyHead

Hi Joomla_tatsu,

If so, is it as simple as pointing all child forms to the one db table?

Yes, you need to pick up the cf_id reference from the first save and include that as a hidden field in each of the following steps.

Bob

PS This is explained in more detail in "Building a Comple multi-page form" in Chapter 12 of The ChronoForms Book

j
joomla_tatsu

Assuming I create a hidden field with a value of "cf_id"?

N.B. I'm waiting for the book to ship :)

Thanks so much for all your help, what would we do without you?

GreyHead

Hi Joomla_tatsu,

See this post for some sample code.

Bob

p
pjohnson

Hello,

I have a multi-page form, which seems to work when I go to the direct link: (e.g. http://www.mysite.com/index.php?option=com_chronocontact&chronoformname=Parentform)

However, if I try to embed it in a page with the plug-in, it shows up as blank. Other, single-page forms show up OK. Is this expected?

What's the easiest way to change the overall page layout for a form? In my case, I want the multi-page form page to hide the left and right rails, and expand the content area.

Thanks,
Patrick

GreyHead

Hi Patrick,

Check the in the page source that the form tag isn't wrapped in <p> tags - that will hide the form in IE.

Using the plug-in form with mult-page forms is always a bit tricky as you need to work out what will happen on the second page - that will not be embedded and can look odd. It might be easier to link out of the article to a stand-alone form page from the beginning.

Bob

p
pjohnson

Thanks. I'm putting together a multi-page survey form with dozens of pages -- like a Wizard.

Results need to go into the database.

Any hints or tips would be very much appreciated ... :D

Feels a bit like I may be pushing the envelope.

Thanks,
Patrick

Powered by ChronoForums - ChronoEngine.com

ChronoForms Book

The ChronoForms Book, written for ChronoForms v3 contains 350 pages of invaluable ChronoForms How-tos hints and tips.

Note: many of the ideas can be used in ChronoForms v4 but the admin interface is very different and code examples may need to be modified.

SSL

Members Login

 

2CheckOut.com Inc. (Ohio, USA) is an authorized retailer for
goods and services provided by ChronoEngine.com