Formbuilder or CGBetterForms display input previous page??

Have a question or a suggestion about a 3rd party addon module or plugin?
Let us know here.
Locked
Edwin_IandD
Forum Members
Forum Members
Posts: 80
Joined: Thu Aug 12, 2010 2:27 pm

Formbuilder or CGBetterForms display input previous page??

Post by Edwin_IandD »

Hello all,

I know Formbuilder can use forms with several pages and it's quite easy to set this up. I assume the new CGBetterForms module can do this as well. I haven't tried this module, but I will on my next website.

But what I don't know, and certainly not how to, is if it is possible to display the info from the previous page on any additional pages. Ideally 'copied' into the same input element.

What I am thinking of doing for a B&B website is make an booking enquiry form with a date picker on the front page with a 'next' button to the rest of the form where people can fill in their details. Obviously on the next page you would still need to see the date you picked, ideally with the option of changing it.

A lot of hotel and B&B websites are using a system like this and I think it looks pretty smart and above all entices people to check availability and make a booking!

So, if anyone of you can tell me if this is possible and how I would be most grateful! :-D

Many thanks,
Edwin
calguy1000
Support Guru
Support Guru
Posts: 8169
Joined: Tue Oct 19, 2004 6:44 pm
Location: Fernie British Columbia, Canada

Re: Formbuilder or CGBetterForms display input previous page

Post by calguy1000 »

CGBetterForms does not have the concept of 'multi-page' forms.

If you want to do something like this... then I would suggest using a jquery slider plugin or an accordion or something... and making it one form.

The data entry portion is just split up for validation and UI purposes.

You could use ajax to check the date field for availability when the 'next' button is pressed.
Follow me on twitter
Please post system information from "Extensions >> System Information" (there is a bbcode option) on all posts asking for assistance.
--------------------
If you can't bother explaining your problem well, you shouldn't expect much in the way of assistance.
User avatar
velden
Dev Team Member
Dev Team Member
Posts: 3483
Joined: Mon Nov 28, 2011 9:29 am
Location: The Netherlands

Re: Formbuilder or CGBetterForms display input previous page

Post by velden »

Soon, I will be working on the (exact) same concept for a booking system.
And I think CGBetterForms (CGBF) supports this method (it required some tips from calguy).

I'm not sure which module I will use but have been testing with CGBF. Setup two separate forms and give the first form (e.g. 'FormA) a handler 'Store form results in the session for further processing'

Then further down the road you can use the results like this:

Code: Select all

{$fd=$smarty.session['FormA']}
{$fd->get_field_value('firstname')}
{$fd->get_field_value('lastname')}
Also make sure to read the CGBF help from start to end (I didn't and came up with a false bug report http://dev.cmsmadesimple.org/bug/view/11742 <- read Robert's comment anyway, can be helpful)

For storing the final results I'm thinking of using LISE but a few days ago calguy released CGBFCrud (assuming Crud stands for CReate, Update, Delete) http://dev.cmsmadesimple.org/projects/cgbfcrud which might be a good alternative. I didn't check it though so I don't know if it will be easy to handle the data of two forms at once.

Might be interesting to share some experiences here as it seems we're going to build something similar.
Edwin_IandD
Forum Members
Forum Members
Posts: 80
Joined: Thu Aug 12, 2010 2:27 pm

Re: Formbuilder or CGBetterForms display input previous page

Post by Edwin_IandD »

Thank you very much for your replies!

I need to look into the new modules but it seems feasible.

It might be a while before I get to the building stage of the site. At the moment we are only at the design stage and the client needs to have a good look at the design I came up with.

I'll try and post back any progress if I can.

Thanks again!
Edwin
Locked

Return to “Modules/Add-Ons”