Custom forms were added long after the SQLFORM concept was designed. This is the only way it can form for now.
On Jul 26, 5:27 am, ciastek <ciasteczk...@gmail.com> wrote: > Is it desired behaviour? > -- Sebastian > > On 6 Lip, 20:55, "mr.freeze" <nat...@freezable.com> wrote: > > > It looks like the custom components are only built in the init of > > SQLFORM so you will have to pass it in the constructor:>>>form= > > SQLFORM(db.things, _class='small') > > >>>form.custom.begin.xml() > > > '<form action=""class="small" enctype="multipart/form-data" > > method="post">' > > > On Jul 6, 12:55 pm, rāma <ranjeev...@gmail.com> wrote: > > > >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 customformtag. > > > > > > 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 inform.custom.begin to insert > > > > > > the above.