If you define the referenced table before the table having the 
list:reference field the form widget should be a multiple dropbox (see 
http://web2py.com/books/default/chapter/29/06/the-database-abstraction-layer?search=list#list:<type>,-and-contains
 )

Example from the book:

>>> db.define_table('tag',Field('name'),format='%(name)s')
>>> db.define_table('product',
        Field('name'),
        Field('tags','list:reference tag'))



Il giorno martedì 10 dicembre 2013 01:19:32 UTC+1, Jesse Ferguson ha 
scritto:
>
> This has worked wonderfully on all my fields except now i cant figure out 
>> how to fix one field widget...
>>   Its a List reference.... its showing like this...
>
>
> <https://lh6.googleusercontent.com/--cm01auk5ew/UqZdc-ZUExI/AAAAAAAAcVk/VjvQJm_NUlQ/s1600/Untitled.png>
>
> I want to be able to add more like it is now (plus and minus next to 
> input) however i would like it to be a drop down of referenced items... for 
> the life of me i cannot figure out how to have both.....
>
>
>
>
>  
>
>> On Mon, Dec 9, 2013 at 12:16 PM, Jesse Ferguson <[email protected]> wrote:
>>
>>> Is there a way to do this using a autocomplete field? would i put the 
>>> logic in a custom validator? or is there a easier better way?
>>>  
>>> -- 
>>> Resources:
>>> - http://web2py.com
>>> - http://web2py.com/book (Documentation)
>>> - http://github.com/web2py/web2py (Source code)
>>> - https://code.google.com/p/web2py/issues/list (Report Issues)
>>> --- 
>>> 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.
>>>
>>
>>

-- 
Resources:
- http://web2py.com
- http://web2py.com/book (Documentation)
- http://github.com/web2py/web2py (Source code)
- https://code.google.com/p/web2py/issues/list (Report Issues)
--- 
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.

Reply via email to