That doesn't work for me in the console. What am I doing wrong?:

>>> form = SQLFORM(db.things)
>>> form['_class'] = 'small'
>>> form.custom.begin.xml()
'<form  action="" enctype="multipart/form-data" method="post">'


On Jul 6, 11:14 am, mdipierro <[email protected]> wrote:
> form['_class']='small'
>
> On 6 Lug, 09:33, rāma <[email protected]> wrote:
>
> > How do I insert attributes ie _class="small" into a custom form tag.
> > Should look like below at the end of the day.
> > '<form  action="" enctype="multipart/form-data" method="post"
> > class="small">'
>
> > I didn't find any attribute function in form.custom.begin to insert
> > the above.

Reply via email to