This is a part of the solution I think : http://www.ryancramer.com/journal/entries/select_multiple/
Richard On Thu, Apr 19, 2012 at 3:08 PM, Richard <[email protected]>wrote: > Hello, > > I would know if there is a way to tell to list:reference to not order the > id of the reference table to keep the order in wich the user has pick those > element... At the same time I just thought that this concept is useless > except in case you use some javascript plugin like Chosen Multiple Select ( > http://harvesthq.github.com/chosen/) because, you pick the element in a > list and there is no way to know which element in the list the user has > selected first. > > My need is to allow users to select element from an other table and keep a > more informative those selected thing. Like the ingredient on the back > panel of food box, the first ingredient more abondant than the second an so > on. > > So, for now I think I am stock with a text field. I would avoid a free > text field because I would prefer user to always use the same name for the > same thing, but I can't do it with text type field. What I thought is a > list:reference field and a button beside the field to allow allow user to > add missing element name in the foreign table if need without leave the > original form. This can be done easily with the select or add web2py slice > : http://www.web2pyslices.com/slice/show/1446/widget-select-or-add-option. > Thanks to the author. > > But, I think that keeping the order of the selected element can't be done?? > > Thanks for help. > > Richard >

