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.

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)

 

Special Offer

Sale! All subscriptions at a special price!

Includes prio support, all of our current and future Joomla!® extensions and Joomla!® templates for the duration of your membership.

Get it from here

3rd Party Discount - 25% Off

We help you to keep your costs under control. If you are a new member and purchased a form building tool from a different form vendor, then you'll get a 25% discount on our subscription plans.

How to receive the discount:

Send us a quick email to sales@crosstec.org with a proof of purchase (for example a paypal receipt), await payment instructions and enjoy your membership!