[solved] Don't validate on previous page

  • uglyeoin
  • uglyeoin's Avatar Topic Author
  • Offline
  • Gold Boarder
  • Gold Boarder
  • Posts: 288
  • Karma: 5
  • Thank you received: 3

uglyeoin created the topic: [solved] Don't validate on previous page

Hi there,

I don't want the form to validate on the previous page, only on the next page. You showed me how to do this previously but I can't remember what the advice was.

I don't mind validating on the next page, but when trying to go back I'd prefer to just let the user go back.

I tried unpublishing the "validate on previous" script but it stopped the back button working altogether.
  • uglyeoin
  • uglyeoin's Avatar Topic Author
  • Offline
  • Gold Boarder
  • Gold Boarder
  • Posts: 288
  • Karma: 5
  • Thank you received: 3

uglyeoin replied the topic: Don't validate on previous page

Ah ha I worked it out.

Go to Breezing forms.

Go to Manage Scripts

Click on Validate Previous Page

Change the code to this. The original code is still there it has simply been commented out in case you need it in the future.
function ff_validate_prevpage(element, action)
    if(typeof bfUseErrorAlerts != 'undefined'){

    error = ff_validation(ff_currentpage);
    if (error != '') {
       if(typeof bfUseErrorAlerts == 'undefined'){
        } else {
    } else{
    	if(ff_currentpage > 1){
  /*  } */

} // ff_validate_prevpage
Moderators: ForumSupport
Time to create page: 0.043 seconds

We Are Doing Our Part

Massive discounts on all of our extension subscription plans to help you and your business in these times.

Get Your Subscription Here

New Icon Packs Category!

Crosstec is now offering icon packs.

If you are a paying subscriber, icon packs are automatically added to your account.

Check out our icon packs page!

News and Updates

Get informed about new downloads, updates and more in our News and Updates newsletter.

All Extensions Subscription

We are doing our part and support your business with extremely low prices -- For example 6-Months-Subscription for only $9 USD. For as long as necessary.

No support per domain or website installation limits! Includes all of our current and future Joomla!® extensions, Joomla!® templates for the duration of your membership. This means, by purchasing an All Extensions Subscription you'll have it all covered!

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!