Hello Massimo and others,

> field validators IS_IN_SET and IS_IN_DB trigger SELECT/OPTION
> automatically. You can do
>
> INPUT(_name='fieldname',requires=IS_IN_DB(db,'table.field','%
> (otherfieldname)s')
I checked that out.
It works well to define the items offered for selection.
But how do I deal with the new entry?

If I follow your code I only get:
> > <select>
> >   <option value="volvo">Volvo</option>
> >   <option value="saab">Saab</option>
> >   <option value="mercedes">Mercedes</option>
> > </select>

But what do I do if I want to give the users the option to
1) select from previous entries OR
2) add new data like:

> > <select>
> >   <option value="volvo">Volvo</option>
> >   <option value="saab">Saab</option>
> >   <option value="mercedes">Mercedes</option>
> >   <option value="new_value">Enter New Item</option>
> > </select>

Please help me how to get something like:
> >   <option value="new_value">Enter New Item</option>
into my SQLFORM?

Thanks in advance,
Timmie
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"web2py Web Framework" group.
To post to this group, send email to web2py@googlegroups.com
To unsubscribe from this group, send email to 
web2py+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/web2py?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to