Community & Support

Ajax form validating

Last updated March 7, 2009.

Drupal has a wonderful form processing subsystem, especially in 5.x.

Now, hook_validate only gets invoked after pressing the submit button. But the form items which are rejected by hook_validate, such as required fields, don't provide good visual feedback to the user. There are a lot of average users asking why the form remains the same after pressing submit.

If validation could be done via Ajax, the fields which have errors (set by form_set_error) should give better visual feedback to the user which is easily noticed.

ATM, Ajax form validating should be compatible with 5.x, which means no more API changes.

Comments

This functionality exists...

This is currently being done by the Ajax Form Validation module.

Ajax form validation only for D6

Ajax form validation doens't have a Drupal 5 version available.

Danno
http://www.danieltome.com

My apologies... There was a

My apologies...

There was a v5 version available, but it was discontinued.