⚠ In case you've missed it we have migrated to our new website, with a brand new forum. For more details about the migration you can read our blog post for website migration. This forum is read-only and soon will be archived. ⚠

Validation has errors despite correct input

form validation numeric alpha callback error

  • Please log in to reply
No replies to this topic

#1 msquare



  • Members
  • Pip
  • 2 posts

Posted 04 March 2013 - 07:14 PM

I have a form which requires an alpha_numeric input. I set the validations and etc., and it flashes an error every time I test it out with an alpha_numeric input. The same problem occurs when I use alpha, numeric, etc. "Required" works fine.
A similar problem occurs when I used a callback function for a time input field (If you know a better way to integrate a timepicker, since grocerycrud only has the datepicker, please tell me.). In the callback function, it checks if the hours/minutes is numeric, so I used the is_numeric PHP function. However, the error message I set keeps flashing despite a correct input.
Thanks in advance for any helpful answers!

Also tagged with one or more of these keywords: form, validation, numeric, alpha, callback, error

0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users