Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 369175
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 12, 20262026-05-12T13:53:40+00:00 2026-05-12T13:53:40+00:00

I have a form that works in ‘sections’ that I will refer to as

  • 0

I have a form that works in ‘sections’ that I will refer to as ‘panels’.

By default, the form is listed out on the page, one panel after the other. However, with JavaScript, it puts the panels into one panel viewer, and displays them one after the other (with prev/next buttons).

Example Form Workflow

Panel 1: User Details -> Panel 2: User Location -> Panel 3: User Info -> Panel 4: Confirm Details

I am using the jQuery Validation plugin.

My problem is, I have set up all the rules for all the inputs in the first 3 panels, and I’d like to be able to only validate a subset of them per panel. Example, when pushing ‘next panel’ after completing name & email (in the 1st, user details panel), I’d like to do a validation only on that panel first, and then get a boolean response (if the 1st panel validated), and if true, then proceed to the next panel.

I’ve played around with a bit of the config, but unfortunately could not get it to work as I wanted. This is my first project with this plugin so I’m quite new to it!

Is there a way to add rules dynamically to the plugin? i.e. not on $('form').validate(options) ?

What I’d like to do, is call the validate() on the form, with all the error messages, and then on the ‘next panel’ code, do a switch case to determine which rules to add, and then call a validate() myself.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-12T13:53:41+00:00Added an answer on May 12, 2026 at 1:53 pm


    Could you not do:

    next.onclick(validate form)

    hide errors for following panels

    display next panel

    Looking at the documentation, it seems that you can validate each element, so onclick( validate page one) … and so on

    http://docs.jquery.com/Plugins/Validation/Validator/element#element

    Or you could add methods to the validation using this:

    http://docs.jquery.com/Plugins/Validation/Validator/addMethod#namemethodmessage

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a form that works with one exception, when a user doesn't fill
I have a continuous form that works when I manually open it. However when
I have a form that calls on two separate models. My validation works correctly
I have an C# form application that use an access database. This application works
I have a city form that works for the initial creation of the city,
I have a simple contact form that works in every browser, except IE. It
I have a form that works perfectly. If filled in and validation passes, it
I have a form that submits values to database via Ajax and works fine
I have piece of Code in Form that works: public class Form1 : System.Windows.Forms.Form
I have a form that works, but I need to have some fields hidden

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.