The IS_IN_DB validator will produce a select widget unless you (a) put it 
inside a list (i.e., requires=[IS_IN_DB(...)]) or (b) explicitly specify an 
alternative widget for the field via the "widget" argument.

As for the specific functionality you want, that's not built into web2py, 
so you will have to code it yourself. For ideas, see 
http://www.web2pyslices.com/slice/show/1616/widget-select-or-add-option-ng 
and https://groups.google.com/forum/#!msg/web2py/KoL58-IjNT4/2aZrXfp5ECcJ.

Anthony

On Thursday, July 24, 2014 4:42:14 PM UTC-4, Jesse Ferguson wrote:
>
> I have a Form that will submit to multiple tables, most items reference 
> items.. For the life of me I cannot figure out how to make the form item 
> not a select box (default behavior). I would like a input/suggest input 
> field and if the input is not in db I would like to add it to DB. If it is 
> in DB then just reference it.. If that doesn't make sense then just picture 
> a "TAG" input field and you want to let users make there own tags and have 
> them added to db.tags, however if the tag exists then you just want to 
> reference it...
>
> For some reason my brain is just drawing a blank so sorry if this is a 
> beaten dead horse question.
>

-- 
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/d/optout.

Reply via email to