nope... when a select has "preselections" the markup is

<select>
   ....<option selected>....</option>
</select>

If you want to do it "the hard way" (i.e. without SQLFORM.factory), you 
need set the "preselection" with 

OPTION(v, _value=v, _selected='')



On Friday, November 15, 2013 12:33:13 PM UTC+1, Shreyas Pandya wrote:
>
> please see the question on stack overflow 
> http://stackoverflow.com/questions/19999852/how-to-preselect-options-in-select-helper-in-web2py
>
> reproduced here for convenience
>
> when creating multiple select input with SELECT, OPTION helpers, I want to 
> preselect some options, I tried following
>
> OPTION('myOption', _value=val, value=[v1, v2])
>
> extrapolating from the docs, but it does not work
>

-- 
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/groups/opt_out.

Reply via email to