Yes. Try the IN_DB validators to tie them together.

Search for "autopostback" by Bruno and go through its code.

On Mar 14, 10:30 pm, Manuele Pesenti <[email protected]>
wrote:
> Il 09/03/2011 04:44, DenesL ha scritto:
>
> > That is called cascaded fields.
> > One example:http://groups.google.com/group/web2py/msg/b2d536d444001565
>
> is there a way to do it usingSQLFORM.factoryand constructing the form
> using an high level method?
>
> thanks
>
>      M.
>
>
>
>
>
>
>
> > Use the advanced group search
> >http://groups.google.com/groups/advanced_search?safe=off&q=group:web2py
> > to find more entries with "cascaded"
> > (type the word in the form where it says "all these words:").
>
> > On Mar 8, 5:09 am, Manuele Pesenti<[email protected]>  wrote:
> >> Dear all,
> >> I need to construct a form with some fields that has to be choosen
> >> within a different set depending on another fieldsvalue... is there
> >> some examples on line to get inspiration from?
>
> >> I try to be a little more clear...
>
> >> if I have a field like that:
>
> >> Field('a', 'integer', requires=IS_IN_SET([1, 2, 3]))
>
> >> and a second field 'b' that has to choosen in different sets, for
> >> examples ['a', 'b'], ['c', 'd'], ['e', 'f', 'g'], depending on the
> >> choosenvalueof the field 'a'
>
> >> any idea?
>
> >> Thank you
>
> >>       Manuele

Reply via email to