This should be in the FAQ if not already.

In any case, here's a link...
http://www.web2pyslices.com/slice/show/1526/cascading-drop-down-lists-with-ajax-2


On Monday, August 26, 2013 10:39:07 AM UTC-7, sasogeek wrote:
>
> I've made a database table in this format,
> db.define_table('user',
>     Field('country', requires=IS_IN_DB(db, 'country.id', '%(name)s')),
>     Field('school', requires=IS_IN_DB(db, 'school.id', '%(name)s')),
> )
>
> db.define_table('country',
>     Field('name'),
> )
>
> db.define_table('school',
>     Field('name'),
> )
>
> how can i ensure that, when a user selects a certain country, only certain 
> schools are shown in the school dropdown menu? and different schools are 
> shown for a different country?
>

-- 

--- 
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 [email protected].
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to