#55 new
Stephen Elson

Allow "optional" tests in form validation

Reported by Stephen Elson | July 17th, 2009 @ 02:51 PM | in 2.0

It would be nice to easily allow optional fields in forms - which means a field that can be empty, but if it has a value must pass defined tests.

A possible interface could be:

myForm.addTests(
    "email_confirm",
    ["isEmail", {required: false}]
);

No comments found

Please Sign in or create a free account to add a new ticket.

With your very own profile, you can contribute to projects, track your activity, watch tickets, receive and update tickets through your email and much more.

New-ticket Create new ticket

Create your profile

Help contribute to this project by taking a few moments to create your personal profile. Create your profile ยป

A JavaScript Library

Shared Ticket Bins

People watching this ticket

Pages