Contao Open Source CMS > Contao forum

Switch to german forum

Index > Feature request > multipages form

Is there a multipage feature for the form builder in TL, maybe it would be a nice feature to add to it.
2007-10-26 23:38
So you can have a super long form? For something like a survey?
2007-10-29 14:58
werty37
User
Avatar
Posts: 156
Hi az1
You can create 2 individual forms and place them in 2 pages?

Sujith
2007-10-29 20:25
iconLogan:
So you can have a super long form? For something like a survey?

- Yes, exactly! :)

iconwerty37:
Hi az1
You can create 2 individual forms and place them in 2 pages?

Sujith

Wont that send several emails?

Or do you mean that it is possible to merge them?
2007-10-30 11:51
qrczak
User
Avatar
Posts: 550
Elbląg, Poland
iconaz1:
Or do you mean that it is possible to merge them?

I dont't think so that the emails merging is possible.
Martin

http://www.typolight.pl - Polish Support Site
http://forum.typolight.pl - Polish TYPOligth community forum
Polish TYPOlight screencasts
| Polish Manual (PDF)
-----------------------
Need custom template? Feel free to contact me by e-mail marcin@typolight.pl
2007-10-30 11:56
thyon
User
Avatar
Posts: 1756
Cape Town, South Africa
As TL doesn't actually store the contents of the form (which the module EFG does), it would be unable to consolidate multiple stages. If you used EFG as follows you'd have the data stored, but not all in the same table area:
a. Create 3 forms for 3 pages, step1, step2, step3 (of the survey)
b. Link the JumpTo pages, e.g. Step1's JumpTo -> Step2, Step2's JumpTo -> Step 3, Step3's JumpTo -> Thank You page.
c. Then you will be able to access all 3 stages as seperate data entries in the form database. You would be able to consolidate the entries in something like excel, using the e-mail address or something.
d. To create a universal link between the stage, ensure you have a link-through field, like a text field called email on Step1. You'll have to link this field to the other forms using hidden form fields, e.g.

- In Step1 use a text field called email (that the user must complete)
- In Step2, Step3, enter hidden fields into an HTML section on your form, as below:

iconCode:
<input type="hidden" name="email" value="<?php echo $_SESSION['FORM_DATA']['email'] ?>" />

The PHP code snippet will extract the step1's e-mail variable and then post it into Step 2 above.

Once submitted and exported, you should be able to sort each table's values on e-mail (which occurs in all three tables). Then you can paste the tables together.

Hope that will help.
thyon | iMac 24" 3.06GHz, OSX Leopard, Safari, Camino, Coda
Manuals: QuickPoll, FormAuto, EventsAttend, Galleries, Invitations, Catalog, Catalog Ext, Catalog Tutorials, Catalog Multi-language Tutorial
2007-10-30 12:18
werty37
User
Avatar
Posts: 156
Or Maybe you can use accordion for the forms....

eg:

> Personal Details (accordion)
Name
Age
.
.
> Job Details (accordion)

Sujith
Last edited by werty37, 2007-10-30 14:38
2007-10-30 14:37
The problem with Accordions is that if there is an error, the accordion closes over it and the person never knows. Example: I want to have their email address, but they don't put their email address in. Upon submit the page refreshes with the error message indicating the problematic field, but the accordion has closed over it, so the user never knows, and probably thinks they sent the information just fine.

If we could figure out a way to make the accordion look for the "error" class and open up accordingly, that would be really beneficial. Putting forms in accordions is a great way to save page real estate.
2007-10-30 15:02
how about this scenario..

One person answers YES to the question "do you drink alcohol?" this YES triggers a new part of a form about the alcohol consumtion, if the answer is NO the questionare jumps to next question...

Or a combination wich leads to chainreaction of questionare?

if YES this form: bla bla 1
if NO this form: bla bla 2
if MAYBE this form: bla bla 3

no matter what answer it leads to the same result of the form/questionare.

Am I making any sense at all or should i try to describe it thru images?
Last edited by az1, 2007-10-30 16:00
2007-10-30 15:59
You are making perfect sense. It's not possible with TL's core.

You might want to check out Zoho Creator. I use it for some business stuff and you can hide/show fields based on other fields' contents. You do this by editing a simplified scripting language called "Deluge" which is easy to learn. You can then embed the form in any site using iframes (unfortunately). Unfortunately the form is always styled the same and it's a little big and bulky. But it's free and it will do what you want. Here's the link:
http://creator.zoho.com/

They also have some other Zoho apps that might meet some of your needs too. You can check those out. But it's definitely not for someone worried about design.
2007-10-30 17:29
Oh ok, thanks..

I would like to have it work somehow in TL, but I guess it isnt possible.

This zoho is only online based forms from what i understand? I will watch one of those videos.
2007-10-30 19:47
werty37
User
Avatar
Posts: 156
Hi

iconQuote:
You can then embed the form in any site using iframes (unfortunately).

Is it not possible to use object tags instead of iframes?

Sujith
2007-10-31 17:42
I dont think thats a solution for me though.. I will go with TL only, and maybe when i got some time over i make my nice modules none else want..

- Multipage Form
- E-Cards
- OpenCart Bridge or such..

and a few other nifty little suckers.. :D
2007-11-01 01:08
Sujith,
Unfortunately the only "embed" feature they have uses iframes. Their apps are quite impressively powerful, but as I said before, not for the design conscious.
2007-11-01 17:08
werty37
User
Avatar
Posts: 156
@Logan
Too bad for them :D

@az1

iconQuote:
- OpenCart Bridge or such..

Take a look
http://typolight.org/forum/viewtopic.php?id=2959
;)

Cheers
Sujith
2007-11-01 17:27