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.

Richard

On Fri, Aug 5, 2016 at 3:03 PM, Anthony <abasta...@gmail.com> wrote:

> On Friday, August 5, 2016 at 2:39:09 PM UTC-4, Richard wrote:
>>
>> So, what you ask, modifying validator and return a new select element
>> with new validations properties is not possible for now in web2py to my
>> knowledge...
>>
>
> If you are making a separate Ajax request after the initial form has been
> loaded, you can change the validator associated with a particular field and
> return a new select element.
>
>
>> The consequences of this is that it is not possible to create a truelly
>> dynamic form with web2py as the form is created and processed server side...
>>
>
> I suppose what you mean by a "truly dynamic" form is one that requires
> Javascript and possible additional server communication (via Ajax or
> websockets). If so, that is possible in web2py, though web2py doesn't
> provide any built-in convenience methods to facilitate this.
>
> 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.
>

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