Next Page Doesn't Go to the Top of the Page
When I click on the "next page" button, it doesn't return to the top of the page. How can I fix it so it does?
1. Go to Components > BreezingForms > Manage Scripts.
Click on Validate and Next Page. Add self.scrollTo(0,0); at the bottom of the function, just before the } // ff_validate_nextpage line.
The script should now look like this.
| Code: |
|
function ff_validate_nextpage(element, action) { if(typeof bfUseErrorAlerts != 'undefined'){ $jq(".bfErrorMessage").html(''); $jq(".bfErrorMessage").css("display","none"); } error = ff_validation(ff_currentpage); if (error != '') { if(typeof bfUseErrorAlerts == 'undefined'){ alert(error); } else { bfShowErrors(error); } ff_validationFocus(''); } else ff_switchpage(ff_currentpage+1); self.scrollTo(0,0); } // ff_validate_nextpage
|
You might want to make the same change to other scripts that provide page navigation, such as:
- Next Page (ff_nextpage)
- Previous Page (ff_previouspage)
![]() |
Was this helpful?
Yes
No
Print
Pdf
|

