On Friday, August 5, 2016 at 3:25:22 PM UTC-4, Richard wrote:
>
> Yes, basic example... You need to input data into a denormalized table, so 
> depend on the type of input you want to make product a vs b, some fields 
> are going to be ignore or required... In this case there is many way of 
> doing it... But I would like to be possible to define my validator once so 
> it behave properly in any situation. web2py use individual field validator 
> workflow, but in case of denormalized table or custom form for which you 
> process input afterward you may need field validation that would depend on 
> other fields input. We should have some basic way of supporting common 
> pattern in such kind of situation to rely less on jQuery of custom 
> validator.
>

Yes, we have the onvalidation callback, as well as the possibility for 
individual field validators to reference request.vars to inspect the values 
of other fields.

Anthony

-- 
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.

Reply via email to