This is the form
form2=FORM(
DIV(
INPUT(_type="text",_class="span2", _name="usr",
requires=IS_NOT_EMPTY(error_message=()), _placeholder="username"),
BUTTON(_value='Pay!',_type="submit",_class="span2"),_style='margin:10px
20px;'))
and i want to do an update after process
form.element('input[name=usr]')['_name']='tkn'
form.element('input[name=tkn]')['_placeholder']='token'
form.element('button[type=submit]')['_submit_button']='Confirm!'
but can't get the Confirm! text on the submit button
On Saturday, September 5, 2015 at 11:13:55 PM UTC, Ben Lawrence wrote:
>
> I just write:
> form=SQLFORM.factory(*fields,buttons = [TAG.button('Send
> Message',_type="submit")])
>
>
> On Saturday, September 5, 2015 at 3:21:09 PM UTC-7, dirman wrote:
>>
>> i need help here
>>
>> this works fine with form input
>>
>> form.element('input[type=submit]')['_value']='Go!'
>>
>> but this does not output the inner text on form button
>>
>> form.element('button[type=submit]')['_submit_button']='Go!'
>>
>
--
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.