{{=form.custom.submit.element(_value='Submit')}}

or:

{{=form.element(_type='submit', _value='Submit')}}

In the second example, you can leave out _type if _value uniquely 
identifies the button among all elements in the form.

Anthony

On Thursday, July 7, 2016 at 2:52:51 AM UTC-4, lucas wrote:
>
> hello one and all,
>
> i'm asking for the best way to chose the single radio input under the view 
> when you setup the field with widget=SQLFORM.widgets.radio.widget.
>
> so i know that under the view you would setup something like:
>
> {{=form.custom.begin}}
> {{=form.custom.widget.report_default_report['something specific here for 
> the radio choice????']}}
> {{=form.custom.end}}
>
> and also, right now i am choosing submit buttons like:
>
> form.custom.submit[3] or form.custom.submit[5]
>
> is there a way to choose it more descriptively, like by button name, 
> perhaps?
>
> thank you in advance, lucas
>

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

Reply via email to