RSForm!Pro - When moving to the next page of a form i want the screen to be scrolled up


Tutorials - Tutorials

User Rating: / 0
When moving to the next page of a form i want the screen to be scrolled up

The function used in order to navigate through your form is defined in the components/com_rsform/assets/js/pages.js file. If you have a lenghty multi-page form and you do not want your users to manually scroll to the top of the page, when you proceed to your second, third pages, you will need to go to Components > RSForm!Pro > Manage forms > select your form > CSS and Javascript tab and add a new function that will be used in order to change pages:

<script type="text/javascript">; function rsfp_changePageScroll(param1, param2, param3, param4) { rsfp_changePage(param1, param2, param3, param4); scroll(0,0); } </script>

This function will use the default function that is used by RSForm!Pro to navigate from one page to another(rsfp_changePage) and after the page is changed will scroll to the top of the page.

After you have made these modifications you will need to add a simple script in Components > RSform!Pro > Manage forms > edit the form > PHP Scripts > "Scripts called on form display" that changes the default function used in order to navigate your form with your new function:

$formLayout = str_replace('rsfp_changePage','rsfp_changePageScroll',$formLayout);

About Us

Royal Developer Top three Web Designing and Web Development Company in Dehradun, Uttarakhand, India. Royal Developer Best SEO Company in Dehradun takes pride in its philosophy of 'Employee First' which empowers to create a real value for the customers. Royal Developer can offer Best and cheap Website Development Software Development & SEO Services. We are the Best service Provider of SEO, SEM, SMO Services Company in Uttarakhand. Web Designing Course in Dehradun, Web Designing Classes in Dehradun, Web Design Training Institute in Dehradun, Web designing institute in dehradun, Best institute for web designing in dehradun, Web development training in dehradun, Web development course in dehradun, Web Designing Training in Dehradun.


- Contact Information - 

Add : RDIT Services Pvt Ltd, 3rd Floor, RGM Plaza, Above Chandu Canteen,
          23 Chakrata Road, Dehradun - 248001, Uttarakhand, India

Email : 


 : +91 8171200108, +91 8979462451,
                                  +91 7895753921

Quick Enquiry Form

Enter your full name

Enter your valid email address

Enter your correct mobile number

Invalid Input

Your Message
Invalid Input

Enter Code
Enter Code
  RefreshInvalid Input


You are here: Home Tutorials RSForm!Pro - When moving to the next page of a form i want the screen to be scrolled up