Login
Please enter your email address and password to login to the help desk.
(leave blank if you forgot your password)
   Save my login information
 

IMPORTANT NOTE:

DUE TO STUCTURAL CHANGES, THE TICKET SYSTEM IS NO LONGER ACCEPTING TICKETS. IF YOU ARE A PAYING SUBSCRIBER, PLEASE LOGIN TO THE CROSSTEC SITE AND USE THE CLUB FORUMS. THE CLUB FORUMS CATEGORY WILL APPEAR RIGHT AFTER LOGIN IF YOU ARE A PAYING CUSTOMER:

>>> Click here to access the forums <<<

We will close the knowledgebase soon as well and move its contents into a new knowledgebase system.

Knowledge Base » BreezingForms » FAQ
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