PHP Classes


Recommend this page to a friend!

      Forms generation and validation  >  All threads  >  Validate  >  (Un) Subscribe thread alerts  
Summary:Validate forms generation
Author:flavio r
Date:2013-08-27 19:46:01
Update:2013-08-28 15:05:48

  1. Validate   Reply   Report abuse  
flavio r - 2013-08-27 19:46:01
How to validate a field with 'ValidateAsInteger' and also allow empty?

  2. Re: Validate   Reply   Report abuse  
Manuel Lemos - 2013-08-28 12:18:29 - In reply to message 1 from flavio r
You can set the ValidateOptionalValue parameter to an empty string, so it accepts it as valid without further checks.

  3. Re: Validate   Reply   Report abuse  
flavio r - 2013-08-28 15:05:48 - In reply to message 2 from Manuel Lemos
Thanks, I had tried this, and now I see I was wrong typing.
Now it worked.