I’ve created a custom module for populating a database and now I need to apply form validation to this form.
I want a few different validation things to happen.
- I want to limit specific entries on the client side IE: only allowing 6 characters being entered etc.
- On submit I want to run through validation rules to make sure what was entered is correct. IE: only positive #s etc.
Are there any drupal 7 FAPI fields to validate specifics like this?
I found something like '#element_validate' => array('element_validate_integer_positive'),
Is there a list anywhere of element validations like this? I’m unable to find documentation anywhere 🙁