Formbuilder - Next page to main content

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

Formbuilder - Next page to main content

Post by Edwin_IandD »

Hello all,

After solving a similar problem with the news module I am turning to this forum with this:

I am using Formbuilder for a 'Check Availability' form on a B&B's website. The form is split into two parts, the first part is a date picker and the next page is for all the personal info. The only issue is that when clicking 'continue..' to go to the next page, the page reloads to the top of the page. The form is about half way down the page, so it means that every time somebody fills in the form they have to scroll down a lot before they can continue. This is obviously very inconvenient.

So, my question is the same as before: How can I make the continue button go to the main content (in my html as <div id="main_content">)?

Hopefully somebody here can help me out.

Many thanks,
Ed
User avatar
DIGI3
Dev Team Member
Dev Team Member
Posts: 1800
Joined: Wed Feb 25, 2009 4:25 am

Re: Formbuilder - Next page to main content

Post by DIGI3 »

What about loading the next part of the form via ajax instead, or just using javascript to show the next part of the form, something like http://www.jquery-steps.com/Examples?

Otherwise, you just need to get an #anchor added to the link, or use javascript to scroll to the appropriate part of the page (you can check if the referrer was the previous page, or check for a variable, then scroll to the form if that condition is met).
Not getting the answer you need? CMSMS support options
Edwin_IandD
Forum Members
Forum Members
Posts: 80
Joined: Thu Aug 12, 2010 2:27 pm

Re: Formbuilder - Next page to main content

Post by Edwin_IandD »

Thanks, Digi3 for your reply.

I would like to avoid that solution if I can at all. I don't think this is possible to do within Formbuilder (I've been messing around with the template a bit and couldn't get it to work, so it could be me...) and I really would like to keep using Formbuilder. Mainly because this would allow our client to change the forms later from within CMSMS.

I know formbuilder is a bit outdated, but it seems silly that it won't allow you to focus on the actual form when going to a second page.

If anybody has any ideas on how to do this I would love to hear it. Otherwise, we'll unfortunately have to build a separate form using jquery outside of CMSMS.
User avatar
DIGI3
Dev Team Member
Dev Team Member
Posts: 1800
Joined: Wed Feb 25, 2009 4:25 am

Re: Formbuilder - Next page to main content

Post by DIGI3 »

All of the options I mentioned are doable within formbuilder. Formbuilder just outputs the html, what you do with it is up to you.
Not getting the answer you need? CMSMS support options
Edwin_IandD
Forum Members
Forum Members
Posts: 80
Joined: Thu Aug 12, 2010 2:27 pm

Re: Formbuilder - Next page to main content

Post by Edwin_IandD »

Sounds like I need to dig into Formbuilder a bit more.. I'll report back when I found out how to do it :)
Post Reply

Return to “Modules/Add-Ons”