Ajax form validating

Last modified: March 7, 2009 - 19:00

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.

This functionality exists...

brendoncrawford - October 10, 2008 - 20:12

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

Ajax form validation only for D6

danieltome - November 19, 2008 - 04:59

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

Danno
http://www.danieltome.com

My apologies... There was a

brendoncrawford - December 12, 2008 - 10:24

My apologies...

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

 
 

Drupal is a registered trademark of Dries Buytaert.