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

  • Home
  • SEARCH
  • 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 7779023
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 1, 20262026-06-01T18:32:45+00:00 2026-06-01T18:32:45+00:00

I like jQuery validation for its simplicity and extensibility. In some of my last

  • 0

I like jQuery validation for its simplicity and extensibility. In some of my last use cases it seemed to reach its limits though. There are some features that I am missing. My question: Is there an open-source library that does support these features, or is there anything remarkable in development? Or, do you have any smart hints on how to extend/use the validation framework to cover these features?

Missed features:

  • For some fields I need to define “warning” rules rather than erros. If they evaluate to false, a message should be displayed but it should contain a link “ignore” that allows the user to turn off the rule (similar to MS Word’s spellchecker where the user can choose to ignore a spelling error). If the validation prevented the form from being sent, ideally the form is immediately sent when the user clicks “ignore”.

  • The rules should depend on the action I want to execute with the form. Whilst for one action the fields are not required yet they might be required to execute another action.

As an example for both cases, take a “send e-mail” form:

  • The “subject” field is not necessarily required but if it is empty the user might have missed it. Ideally the validation framework blocks the form from being sent and displays a message such as “You missed the subject. Ignore”. By clicking “Ignore” the message is disabled and the form is sent.
  • The “to” field is definitely required for sending the e-mail. But if the form provides a “save draft” button, the user should not be forced to fill in this field for saving the draft.
  • 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-06-01T18:32:46+00:00Added an answer on June 1, 2026 at 6:32 pm

    For number two it’s surprisingly easy. Rather than just submitting, you have each button call a function that submits on completion. In that function, you set a jquery variable to tel you which button it came from, and you use the contents of that variable in the part of the jQuery.validator.addClassRules() call that determines whether or not to apply the validation requirement. The first is trickier, but you can set the validation text – which means that you should be able to include a link in it. Have the link trigger a function that, again, changes a variable that the apply/not-apply logic uses (and possibly resubmits – or, alternately, if you have a page with more than one of these, revalidates (thus removing the error message) and allows them to submit later with a different button).

    Quick example on what the addClassRules might look like.

    jQuery.validator.addClassRules("toField",
    {
        required: {
            depends: function(element)
            {
                return $submitNotSave;
            }
        }
    });
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Trying to do some jQuery validation (without the plugin - please no answers like
Using xVal with Jquery validation and would like the error messages to be shown
I'm using jQuery validation in ASP.net MVC. I would like to show validation summary
We have a form which uses the JQuery Validation Plugin and would like to
I have a simple form and would like to add a custom jQuery validation
I want to validate my email address through jquery unobtrusive validation . Like to
I'm doing some simple client side validation with jQuery. var passedValidation = new Boolean(true);
I am using jQuery validation on my form and I would like to be
I am writing a jquery form validation plugin, its working fine. I am passing
I use the JQuery Validation plugin to validate a form ( http://docs.jquery.com/Plugins/Validation/ ) For

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.