Integer fileds can accidentally be entered with 'Out of range' error. This time a user has no other option but to click back button. Any suggestions on templating these kinds of errors or for any other errors of the same nature?


What? ... add a custom FAPI validator to your forms so there is no out-of-range error.

You could build on, or start off by using: http://api.drupal.org/api/drupal/includes%21form.inc/function/element_validate_integer/7

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.