def index():
    test = FORM('Select name:',SELECT(['Ram', 'Satish', 'Kumar', 
],_name='test'))
    if test.process().acceped:
        session.test = test.vars.test                              
    return dict( test=test)

On Wednesday, 21 August 2013 14:17:55 UTC-5, sonu kumar wrote:
>
> Hi,
>
> I have created select button through controller and I would like to store 
> value of select after onchange in a variable so that I can use in other 
> functions. Is there anyway to do it?
>
> def index():
>     test = FORM('Select name:',SELECT(['Ram', 'Satish', 'Kumar', 
> ],_name='test'),_onchange='')
>     session.test = test.vars.test 
>                                  
>     return dict( test=test)
>
> Thanks
>
>>
>>

-- 

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

Reply via email to