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
Formbuilder - Next page to main content
-
- Forum Members
- Posts: 80
- Joined: Thu Aug 12, 2010 2:27 pm
Re: Formbuilder - Next page to main content
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).
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
-
- Forum Members
- Posts: 80
- Joined: Thu Aug 12, 2010 2:27 pm
Re: Formbuilder - Next page to main content
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.
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.
Re: Formbuilder - Next page to main content
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
-
- Forum Members
- Posts: 80
- Joined: Thu Aug 12, 2010 2:27 pm
Re: Formbuilder - Next page to main content
Sounds like I need to dig into Formbuilder a bit more.. I'll report back when I found out how to do it 
