• twitter image
  • facebook image
  • youtube image
  • linkedin image
Language: CMS Made Simple Czech CMS Made Simple France CMS Made Simple Hungary CMS Made Simple Russia CMS Made Simple Netherlands

All times are UTC




Post new topic This topic is locked, you cannot edit posts or make further replies.  [ 4 posts ] 
Author Message
 Post subject: Formbuilder or CGBetterForms display input previous page??
PostPosted: Fri Feb 23, 2018 3:28 pm 
Offline
Forum Members
Forum Members

Joined: Thu Aug 12, 2010 2:27 pm
Posts: 66
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


Top
  Profile  
 
Share On:
Share on Facebook Share on Twitter Share on Google+
 Post subject: Re: Formbuilder or CGBetterForms display input previous page
PostPosted: Fri Feb 23, 2018 6:32 pm 
Offline
Dev Team Member
Dev Team Member
User avatar

Joined: Tue Oct 19, 2004 6:44 pm
Posts: 7966
Location: Fernie British Columbia, Canada
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.


Top
  Profile  
 
Share On:
Share on Facebook Share on Twitter Share on Google+
 Post subject: Re: Formbuilder or CGBetterForms display input previous page  Topic is solved
PostPosted: Sat Feb 24, 2018 10:46 am 
Offline
Dev Team Member
Dev Team Member

Joined: Mon Nov 28, 2011 9:29 am
Posts: 3031
Location: The Netherlands
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:
{$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.


Top
  Profile  
 
Share On:
Share on Facebook Share on Twitter Share on Google+
 Post subject: Re: Formbuilder or CGBetterForms display input previous page
PostPosted: Mon Feb 26, 2018 9:09 am 
Offline
Forum Members
Forum Members

Joined: Thu Aug 12, 2010 2:27 pm
Posts: 66
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


Top
  Profile  
 
Share On:
Share on Facebook Share on Twitter Share on Google+
Display posts from previous:  Sort by  
Post new topic This topic is locked, you cannot edit posts or make further replies.  [ 4 posts ] 

All times are UTC


Who is online

Users browsing this forum: No registered users


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
A2 Hosting