Here is something that might help.

http://dev.s-cubism.com/plugin_multiselect_widget

It doesn't repopulates multiselect fields, but it is possible to add the 
behavior with jQuery and .load controllers

Note: There is no info on code license on the page.

El lunes, 7 de mayo de 2012 08:09:45 UTC-3, Stefan L escribió:
>
> Not sure I got the heading understandable, but this is what I want to 
> achieve (actual values only for demonstration, the app is not about cars 
> :-)):
>
> Given a table:
> db.define_table('cars', Field('maker','string'), Field('model', 'string'), 
> Field('colour','string'))
> db.cars.maker.requires=IS_IN_SET(('Volvo','VW','Chrysler'))
> db.cars.model.requires=IS_IN_SET(('V50','S60','Passat','Voyager'))
> db.cars.colour.requires=IS_IN_SET(('blue','red','pink'))
>
> How can I present a form to the user where the drop downs depend on each 
> other, i.e. if the user selects a make (Volvo) the next drop down only 
> shows the relevant models (V50, V60) and selecting a model populates the 
> colour drop down with the available choices? I've looked at an example 
> from 
> web2pyslices<http://www.web2pyslices.com/article/show/1410/cascading-drop-down-lists>
>  but 
> in my case I want to store all the choices made (maker, model, colour), not 
> only the final value as in the example (in that case, the area code). 
> Should I be able to adapt the example for my purposes?
>
> Regards,
> /Stefan
>

Reply via email to