As noted at the very end of this section
<http://web2py.com/books/default/chapter/29/07/forms-and-validators#Range--set-and-equality-validators>,
you can pass a list of tuples or dictionaries to specify labels for each
value. Not sure what you mean by "when I *don't* use the view".
Anthony
On Thursday, June 2, 2016 at 3:28:55 PM UTC-4, Tadas Talaikis wrote:
>
> Hey guys,
>
> For example, I have this field in the SQLFORM:
>
> Field('things[]', requires=IS_IN_SET([e for e in lthings_ist],
> multiple=True))
>
> where e is a dict of values. How I can pass option label and option value
> in this selection list when I *don't* use the view?
>
--
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.