Closed (fixed)
Project:
Clientside Validation
Version:
7.x-1.x-dev
Component:
User interface
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
6 Sep 2011 at 15:29 UTC
Updated:
7 Oct 2011 at 13:51 UTC
When there are 2 forms (or more) that have validation setup, the messages are displayed above the 1st form.
This is because of the check for the main error messages div also matches the div for the specific form. This can be fixed by adding ":not(.clientside-error)" to the selector... however I'm not sure why you'd use the main error message div as in some cases it may not be close to the actual form.
Comments
Comment #1
attiks commentedI'm afraid it's designed that way, the idea was to mimic core as much as possible, including the placement of the error messages. And yes it's a bit strange when you have multiple forms on the same page.
I turning this into a features request, changing title accordingly.
Comment #2
attiks commentedComment #3
jelle_sAdded in 6.x-1.x-dev, will port to 7.x
Comment #4
jelle_sAdded in both 6.x-1.x-dev and 7.x-1.x-dev. There's also an option to define a custom function for error placement.
Comment #5
attiks commented