On Monday, February 8, 2016 at 9:19:44 AM UTC-5, Pierre wrote:
>
>
> I meant disable the dropdown and let the user input something
>

It gets a default IS_IN_DB validator, which results in a drop-down being 
generated by default. You can override that by putting the validator into a 
list (either using the existing validator or creating a new one), or by 
explicitly specifying an alternative widget for the Field:

db.mytable.ref_field.requires = [db.mytable.ref_field.requires]

or:

Field('ref_field', 'reference other', widget=SQLFORM.widgets.integer.widget)

Anthony 

-- 
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