apart from that, IS_IN_DB totally works with zero (unless multiple=True, in which a zero argument kinda defeats the purpose). Are you sure that you're not adding other validators to that field ?
On Thursday, August 15, 2013 7:59:55 PM UTC+2, Richard wrote: > > insert(0, "Select 4 functions") doesn't work? > > Richard > > > On Thu, Aug 15, 2013 at 1:56 PM, Annet <anne...@googlemail.com<javascript:> > > wrote: > >> Since IS_IN_DB ignores zero='' I tried this: >> >> form.element('select[name=navID]').append("Select 4 functions") >> >> However, the options are sorted by id and "Select 4 functions" ends >> up as the last option. Is there a way to move it to the top of the list >> of options? >> >> >> Kind regards, >> >> Annet >> >> -- >> >> --- >> 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 web2py+un...@googlegroups.com <javascript:>. >> For more options, visit https://groups.google.com/groups/opt_out. >> > > -- --- 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 web2py+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.