[web2py] Re: How to use button instead of input in SQLForm

2012-07-07 Thread Andreas Kaiser
Hi, is there a way to simplify these expression: form[0][-1][1] ? Ok, I can assign these expression to a var. For a lot of questions regarding forms, there is form[0][-1][1] part of an answer. Thanks Andreas Am Samstag, 7. Juli 2012 02:38:04 UTC+2 schrieb Massimo Di Pierro: try

[web2py] Re: How to use button instead of input in SQLForm

2012-07-07 Thread Massimo Di Pierro
You can try replace form[0][-1][1] with form.element(_type='submit').parent On Saturday, July 7, 2012 3:19:02 AM UTC-5, Andreas Kaiser wrote: Hi, is there a way to simplify these expression: form[0][-1][1] ? Ok, I can assign these expression to a var. For a lot of questions regarding

[web2py] Re: How to use button instead of input in SQLForm

2012-07-06 Thread Massimo Di Pierro
try form[0][-1][1].components = [ TAG.button('Upload', _id=px-submit,_type=submit), TAG.button('Clear',_id=px-clear,_type=reset), ] or you can use a custom form. On Friday, 6 July 2012 17:09:41 UTC-5, Andrew Evans wrote: Hello I am trying to figure out how to replace the submit button in