Best practice for populating dropdown based on oth

2019-01-09 11:48发布

问题:

I would like to create a form that contains dropdown fields. After entering text or selecting an option in one dropdown I would like to populate the options in another.

Is there a best practice for doing so specifically with web2py?

回答1:

Check out this lazy options widget (with usage example) as well as these recipes:

  • Cascading Drop Down Lists
  • Cascading Select Based on Python Lists
  • Cascading Drop Down Lists with Ajax


标签: web2py