Skip to main content

Bug Tracker

Side navigation

#3394 closed bug (invalid)

Opened September 23, 2008 01:56AM UTC

Closed February 05, 2010 08:35PM UTC

Last modified March 15, 2012 06:38PM UTC

[validate] Validation plugin validates hidden inputs

Reported by: elyobo Owned by: joern
Priority: minor Milestone: 1.3
Component: plugin Version: 1.2.6
Keywords: validate Cc:
Blocked by: Blocking:
Description

The validate plugin validates hidden inputs, if they are of an appropriate class (e.g. 'required'). This can be confusing, especially if the error message is also hidden (e.g. where the input is wrapped inside a hidden div).

Preventing the validate plugin from paying attention to any hidden inputs (by checking if they, or any parents, are hidden) is simple, but the ideal behaviour would be for this to be configurable (as I suppose that some people want to validate hidden inputs as well).

The attached patch adds the validateHidden option, defaulting to true (the current behaviour). If this is set to false, a check is made on each element and all of their ancestors before validating; if any is hidden, validation is skipped for that element.

Liam O'Boyle

http://www.ontheroad.net.nz

Attachments (1)
Change History (2)

Changed October 13, 2009 12:20AM UTC by dmethvin comment:1

owner: → joern

Changed February 05, 2010 08:35PM UTC by john comment:2

resolution: → invalid
status: newclosed

Please file plugin bugs with the appropriate author on their bug tracker.