Skip to:
Content
Pages
Categories
Search
Top
Bottom

Reply To: [Resolved] Registration validation for “if ANY errors”?

@adamt19

Participant

I’ve resorted to a javascript solution which checks for the existence of “error” divs within my registration form and modifies the HTML of the headline above the form, if necessary.

Note: this code is specific for my registration form, which uses .six .columns grid framework and a short vs. extendable registration experience, depending on how much time the user feels like spending on optional fields from extra field groups. Anyway:

if (jQuery('.row .six div.error').html()) {
    		jQuery('h2.article-title').html('Wait! Something needs fixing, below.');
    		jQuery('p.lead').html('There is at least one error marked below. We\'ve expanded the form to help you find them.');
    		jQuery('.extended').fadeIn(1000);
  		}

It seems there should be some more practical/server-side method for this.

Still looking for answers/help on the birthday thing! 🙂

Skip to toolbar