If you are rendering a SQLFORM or whatever in the view using a custom rendering, ie. not just {{=form}}, then that is when you would be looking back into that I believe. The attribute is identified by form.custom.submit.attributes['_value'] because it is like that for all the input controls I believe, they use that in various ways to determine rendering/operational options.
The section that I took that reference from is on just using a SQLFORM to generate the form. If you are more looking to customize the appearance of the form, the right reference is here I think http://web2py.com/book/default/chapter/07#Custom-forms - that part shows all about customizing the forms. It is not that it is in 2 places as far as I can tell, it is more just depending on what you are doing with it. Custom form rendering - use the latter; SQLFORM rendering - use the former. On Aug 10, 12:00 pm, Sebastian Bassi <sba...@gmail.com> wrote: > On Tue, Aug 10, 2010 at 1:47 PM, mgrabau <g.rab...@gmail.com> wrote: > > By message you mean the value shown ie. "Submit"? > > Yes. > > > That is documented in the book, and is easy to do : > > form = SQLFORM(...fields and all that..., submit_button='The label/ > > message that you want to show there') > > Book > > reference:http://web2py.com/book/default/chapter/07?search=submit_button > > Thank you for the reference. But I found it here: > form.custom.submit.attributes['_value'] > So it is in 2 places?