Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Best practice for populating dropdown based on other dropdown selection in web2py?

Tags:

web2py

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?

like image 252
carrier Avatar asked Nov 16 '11 03:11

carrier


1 Answers

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
like image 116
Anthony Avatar answered Sep 21 '22 13:09

Anthony