• 1

Read this first!

We do not monitor these forums. The forum is provided to exchange information and experience with other users ONLY. Forum responses are not guaranteed.

However, please submit a ticket if you have an active subscription and wish to receive support. Our ticketing system is the only way of getting in touch with RSJoomla! and receiving the official RSJoomla! Customer Support.

For more information, the Support Policy is located here.

Thank you!

TOPIC: Pagebreak "Next" top of form

Pagebreak "Next" top of form 9 years 4 months ago #33370

Hi,

i have a problem.
I have installed RSform Pro some time ago on our company website.
"RSForm! Pro 1.4.0 Rev 48"

Actually we make a new website for our company. This new website will be just 1 responsive site. I have load four different forms on one page. One of this forms will have pagebreaks, but the first site of the pagebreak is much longer as the second etc. - now, when we click on "next" the page don't move to the top of the form. How can i fix this?

I have allready tried to put the following code to the JS area:
<script>

function rsfp_showPage(thePage) {
RSFormProUtils.removeClass(thePage, 'formHidden');
window.scrollTo(0, findPos(document.getElementById('userForm')));
}

function findPos(obj) {
var curtop = 0;
if (obj.offsetParent) {
do {
curtop += obj.offsetTop;
} while (obj = obj.offsetParent);
return [curtop];
}
}
</script>

Does not work. He don't move.

i have also try to put this function "onclick="document.location+='#goToFormTOP';return false;"" on the Additional Attributes of the next button - but the problem here is: he move to this position, but not load the second pagebreak site...

Do you have any ideas how i can fix this?
I think the Additional Attributes is the best solution for this, but my JS skills are really poor so, do you know how i can make that he go to the anchor location and also load the second page? same for the click "previous"?

Best regards
The administrator has disabled public write access.

Pagebreak "Next" top of form 6 years 6 months ago #38546

I am also in need of a solution to this problem. Has anyone found one?
The administrator has disabled public write access.

Pagebreak "Next" top of form 6 years 6 months ago #38547

I have just tried the javascript used by TheKishin and it works perfectly on a form page. Where the form is included a module though it causes the page to load with the page scrolled down to the area where the form is. I just want to have it do that when the next button is clicked on a multipage form.
Last Edit: 6 years 6 months ago by visability.
The administrator has disabled public write access.
  • 1

Read this first!

We do not monitor these forums. The forum is provided to exchange information and experience with other users ONLY. Forum responses are not guaranteed.

However, please submit a ticket if you have an active subscription and wish to receive support. Our ticketing system is the only way of getting in touch with RSJoomla! and receiving the official RSJoomla! Customer Support.

For more information, the Support Policy is located here.

Thank you!