When clientside_validation_states is enabled, fields with required #state are immediately validated when the conditions are met. This triggers error messages before the user has had a chance to do anything.
For instance, in the following gif, when the user selects "Make other required", the "Other Hotel" text field appears and is immediately marked as invalid, even though the user hasn't had a chance to type anything. I think this is a bit rude.
Image courtesy of Jelle_S - https://www.drupal.org/node/2135953#comment-8178863
This patch removes the immediate validation bit. This gives the user a chance to fill in the field without displaying an error. The other validation events (blur, keyup and submit) still trigger as normal.
This could be considered a feature request, but I think it is a UX bug.
Comment | File | Size | Author |
---|---|---|---|
#2 | clientside_validation-immediate_validation-2745113-2.patch | 810 bytes | bwaindwain |
Comments
Comment #2
bwaindwain CreditAttribution: bwaindwain as a volunteer commentedComment #3
bwaindwain CreditAttribution: bwaindwain as a volunteer commentedComment #4
bwaindwain CreditAttribution: bwaindwain as a volunteer commented