TOPIC:

[solved] Don't validate on previous page 8 months 2 weeks ago #240529

  • uglyeoin's Avatar Topic Author
  • uglyeoin
  • Offline
  • Expert Breezer
  • Expert Breezer
  • Posts: 291
  • Karma: 5
  • Thanks: 3
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.

Please Log in or Create an account to join the conversation.

Last edit: Post by uglyeoin.

Don't validate on previous page 8 months 2 weeks ago #240530

  • uglyeoin's Avatar Topic Author
  • uglyeoin
  • Offline
  • Expert Breezer
  • Expert Breezer
  • Posts: 291
  • Karma: 5
  • Thanks: 3
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'){
     JQuery(".bfErrorMessage").html('');
     JQuery(".bfErrorMessage").css("display","none");
    }

    error = ff_validation(ff_currentpage);
    if (error != '') {
       if(typeof bfUseErrorAlerts == 'undefined'){
           alert(error);
        } else {
           bfShowErrors(error);
        }
        ff_validationFocus('');
    } else{
*/
    	if(ff_currentpage > 1){
	 ff_switchpage(ff_currentpage-1);
	 self.scrollTo(0,0);
        }
  /*  } */

} // ff_validate_prevpage

Please Log in or Create an account to join the conversation.

  • Page:
  • 1
Moderators: ForumSupport
Time to create page: 0.042 seconds

BreezingForms Pro 1.4.7 for WordPress Released!

Available in the membership section.

September Discount!

Massive discounts on all subscriptions!

Get Your Subscription Here

Quick Links

Downloads

BreezingForms

ContentBuilder

BreezingCommerce

Templates

Documentation

BreezingForms

ContentBuilder

BreezingCommerce

Apprendre BreezingForms (French Community)

Apprendre et maîtriser BreezingForms par des tutoriels et exemples, le tout en français

breezingforms.eddy-vh.com

Questions et réponses sur les forums de l'AFUJ

AFUJ

Special Offer

Summer 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!