Bug Tracker

Opened 11 years ago

Closed 10 years ago

#4211 closed enhancement (invalid)

[validate] Allow for easy error placement with groups feature

Reported by: cfjedimaster Owned by: joern
Priority: minor Milestone: 1.4
Component: plugin Version: 1.3.2
Keywords: Cc:
Blocked by: Blocking:

Description

It seems like you will always want custom error placement when you use the groups feature. It would be nice if you didn't have to actually write a custom handler just because you are grouping fields together. Imagine being able to change this:

groups: {

fullname: "firstname1 lastname1"

}, errorPlacement: function(error, element) {

if (element.attr("name") == "firstname1"

element.attr("name") == "lastname1" )

error.insertAfter("#lastname1");

else

error.insertAfter(element);

},

To

groups: {

fullname: {

fields: "firstname1 lastname1", errorplacement: "lastname1"

}

},

Change History (2)

comment:3 Changed 10 years ago by dmethvin

Component: unfilledplugin
Owner: set to joern

comment:4 Changed 10 years ago by john

Resolution: invalid
Status: newclosed

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

Note: See TracTickets for help on using tickets.