This is one of those head-scratchers Marcelo. Note the "onvalidation" function is called AFTER the validation is done on the form. By then it's too late to prevent the validators from being run on the hidden fields. I could monkey around with the added "error" stuff after the fact, but that's too kludgy for even me!
-- Joe On Monday, April 10, 2017 at 8:05:12 AM UTC-7, Marcelo Huerta wrote: > > Maybe creating a validation function which checks the different values and > depending on them fills the form.errors values when a validation error > happens? Take a look to > http://web2py.com/books/default/chapter/29/07/forms-and-validators#onvalidation > > -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code) - https://code.google.com/p/web2py/issues/list (Report Issues) --- You received this message because you are subscribed to the Google Groups "web2py-users" group. To unsubscribe from this group and stop receiving emails from it, send an email to web2py+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.