-
-
Notifications
You must be signed in to change notification settings - Fork 9
How to validate bigint (10 digits or more like mobile no)? #11
Comments
Oh - interesting! Is it failing in client-side validation, or server-side? |
Hi Alex, Not sure, BTW, how to check? Validation occurs on form submit, so presume it is server side. For now, i've used "numeric" in which '9.9' happens to be a valid mobile no! FYI pl. |
so it lets you submit the form (showing all fields as green), but then it gives an error? This would be server side, then. BTW: with issues, you don't need salutations and signatures. Just your comment is enough. |
Thanks! Server side. |
Ok, so that would be in Valitron, which internally uses This might be platform dependent, see http://stackoverflow.com/questions/31070807/filter-var-and-validating-integer-values. One thing that could be done is to explicitly set the minimum and maximum range for integers in the call to |
Thanks for saving my day! On Sun, Jul 17, 2016 at 1:48 AM, Alex Weissman [email protected]
|
No problem - were you able to fix it? I wonder if Valitron would consider adding explicit values for |
Not yet.. using 'numeric' for now. will work on this and keep you posted.. :-) |
Hi!
Greetings!
While validating mobile number (for 10 digits) as integer, it accepts only typical integer value (65535).
Is bigint supported? other than through regex of course.
Was also looking for date, but couldnt find.
Thank you!
warm regards and gratitude for the nice framework that saves tons of work.
Spurgeon
The text was updated successfully, but these errors were encountered: