I simply need to add a validation class that limits a numerical entry from being greater than 24.
Is this possible with CI’s default validation classes or will I have to write a custom validation class?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
There’s no maximum or minimum comparison function in the Form Validation Rule Reference, so you can just write your own validation function.
It’s pretty straightforward. Something like this should work: