form.element(_id='the_id_of_the_field')['_title']='the title of the field'
This works. attributes must start with _. html.py is transparent to them. On Jan 28, 7:28 am, vihang <[email protected]> wrote: > I am building the form directly from SQLFORM. But I tried many > combinations using form.element and accessing the form array directly, > but does not work. Supposedly 'title' is not there in the input helper > (html.py) on the first place. > > On Jan 28, 4:37 pm, tiago almeida <[email protected]> wrote: > > > Have you tried using the optional parameter _title when building your INPUT > > object? > > > INPUT( ..., _title="my Title", ...) > > > --- > > > On Thu, Jan 28, 2010 at 8:33 AM, vihang <[email protected]> wrote: > > > Any idea how I can access or add 'title' attribute for input elements? > > > Cannot see it anywhere in the html.py. > > > > 'title' is used for tooltips text. > > > > Thanks > > > > -- > > > You received this message because you are subscribed to the Google Groups > > > "web2py-users" group. > > > To post to this group, send email to [email protected]. > > > To unsubscribe from this group, send email to > > > [email protected]<web2py%[email protected]> > > > . > > > For more options, visit this group at > > >http://groups.google.com/group/web2py?hl=en. > > -- You received this message because you are subscribed to the Google Groups "web2py-users" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/web2py?hl=en.

