I'm sure that onvalidation call after web2py's base validation is passed, so in
your case "" is not valid integer, thus your code never run
--
Resources:
- http://web2py.com
- http://web2py.com/book (Documentation)
- http://github.com/web2py/web2py (Source code)
-
Now the error message changes to:
Enter a number between -1e+100 and 1e+100
On Thursday, January 17, 2019 at 6:41:02 PM UTC+8, sandeep patel wrote:
>
> @lyn2py
> instead of using Field Type Integer use double
> Like This
> Field('one_field_only', 'double'))
>
> Thanks
> SP
>
> On Thu, Jan 17,
@lyn2py
instead of using Field Type Integer use double
Like This
Field('one_field_only', 'double'))
Thanks
SP
On Thu, Jan 17, 2019 at 3:47 PM lyn2py wrote:
> My code did not change, but upgrading web2py caused my Form Validation to
> fail.
>
> Older (working) version: Version
>
My code did not change, but upgrading web2py caused my Form Validation to
fail.
Older (working) version: Version 2.17.1-stable+timestamp.2018.08.05.17.57.00
New (not working) version: Version
2.17.2-stable+timestamp.2018.10.06.11.34.06
Controller Code (did not change):
def index():
form =
4 matches
Mail list logo