• 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: Pagebreaks in form jump to the end of the page

Pagebreaks in form jump to the end of the page 9 years 10 months ago #31356

  • info218
  • info218's Avatar
  • OFFLINE
  • Fresh Boarder
  • Posts: 2
Hello all!

I created a form with a few pages, but when I click on the Next button on the end of the 1st page, the new page starts at the END of the 2nd page, not at the top.

Is there a trick how to start a new page at the top?

Best regards,
Dirk
The administrator has disabled public write access.

Pagebreaks in form jump to the end of the page 9 years 10 months ago #31362

  • henrymendis
  • henrymendis's Avatar
  • OFFLINE
  • Fresh Boarder
  • Posts: 2
  • Thank you received: 1
insert the following code in next page will always start from top

CSS and Javascript:

<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>
The administrator has disabled public write access.

Pagebreaks in form jump to the end of the page 9 years 10 months ago #31427

  • orders42
  • orders42's Avatar
  • OFFLINE
  • Fresh Boarder
  • Posts: 3
Where do you insert the code exactly? I've tried it everywhere, including a module (Flexi custom code) on the form pages, as a JS call, and inline directly in the template index.php file and can't get it to work.

Help? Thanks in advance.
The administrator has disabled public write access.

Pagebreaks in form jump to the end of the page 9 years 10 months ago #31428

  • henrymendis
  • henrymendis's Avatar
  • OFFLINE
  • Fresh Boarder
  • Posts: 2
  • Thank you received: 1
In RSform -> form management -> Property -> below Design -> in CSS and Javascript

or try the following link

www.rsjoomla.com/forum/37-rsform-pro/116...e-scroll-to-top.html

Hope the link helps you

Regards ;)
Last Edit: 9 years 10 months ago by henrymendis. Reason: Regards repeated
The administrator has disabled public write access.
The following user(s) said Thank You: orders42

Pagebreaks in form jump to the end of the page 9 years 10 months ago #31435

  • orders42
  • orders42's Avatar
  • OFFLINE
  • Fresh Boarder
  • Posts: 3
Thanks so much! The info on the link actually worked better, but I wouldn't have found that link without you! Plus I totally forgot about the JS and CSS area. You rock!!
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!