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.

gif
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.

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

bwaindwain created an issue. See original summary.

bwaindwain’s picture

bwaindwain’s picture

Issue summary: View changes
bwaindwain’s picture

Status: Active » Needs review