0

If I create a new multi-page form in RSform the page switching is behaving non user centric. Means if I click on "Next" in the form the form is, to staying at the bottom of the page instead of jumping to the top of the form on the new page.

How can I configure this behaviour to jump to the top of the form. Ideally I can decide to jump to the top only if the user has not entered any values. So a user can quickly click through the form if he wants only to review the form.

1

In your form go to CSS and JavaScript and add this code

<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>
New contributor
laendle is a new contributor to this site. Take care in asking for clarification, commenting, and answering. Check out our Code of Conduct.
  • thx this trick worked! – cilap yesterday

Your Answer

By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.

Not the answer you're looking for? Browse other questions tagged or ask your own question.