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.