form['_class']='small'
Doesn't work with custom forms. :-(

On Jul 7, 1:07 am, "mr.freeze" <nat...@freezable.com> wrote:
> 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 <mdipie...@cs.depaul.edu> wrote:
>
>
>
> > form['_class']='small'
>
> > On 6 Lug, 09:33, rāma <ranjeev...@gmail.com> 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