You need to make your own widget

On Oct 6, 3:45 pm, Thadeus Burgess <thade...@thadeusb.com> wrote:
> Massimo,
>
> How do you control the display of a widget?
>
> When using
>
> Field('blah', requires=IS_IN_DB(db, 'category.id', 'category.name'),
> widget=SQLFORM.widgets.radio.widget)
>
> It displays the radio list in a table... I want a UL
>
> If you do not select a radio option, it will also append "Value is not in
> db..." under each radio button in the set.
>
> I only want it to display once, preferrably after the label or comment.
>
> I am using
>
> {{=form.custom.label.blah}}
> {{=form.custom.widget.blah}}
> {{=form.custom.comment.blah}}
>
> -Thadeus
>
> On Tue, Oct 6, 2009 at 2:53 PM, mdipierro <mdipie...@cs.depaul.edu> wrote:
>
> > Let us know when you find out.
>
> > Massimo
>
> > On Oct 6, 2:43 pm, leone <handja...@gmail.com> wrote:
> > > Acc.!!
> > > It works fine, but form.accets(request.vars) returns always False.
> > > I have a button type=submit with an image before {{=form.custom.end}}.
> > > I suppose this could be an error and Ihave substitute it with
> > > {{=form.custom.submit}} with no result.
> > > I have difficult to find solutions using your manual, but it is my
> > > problem.
>
> > > On 6 Ott, 19:58, mdipierro <mdipie...@cs.depaul.edu> wrote:
>
> > > > It is automatic. You just need
>
> > > > Field('name',requires=IS_IN_SET(('a','b','c')))
>
> > > > or requires IS_IN_DB
>
> > > > On Oct 6, 11:32 am, leone <handja...@gmail.com> wrote:
>
> > > > > How can I render a <select> <option> sequence by Field in
> > > > > SQLFORM.factory?
> > > > > Thanks!
>
> > > > > On 6 Ott, 17:14, mdipierro <mdipie...@cs.depaul.edu> wrote:
>
> > > > > > yes
>
> > > > > > form=SQLFORM.factory(Field('x'),Field('y'))
>
> > > > > > <HTML>
> > > > > > ......
> > > > > >  {{=form.custom.begin}}
> > > > > >  {{=form.custom.widget.x}}
> > > > > >  {{=form.custom.widget.y}}
> > > > > >  {{=form.custom.submit}}
> > > > > >  {{=form.custom.end}}
> > > > > >   ......
> > > > > >  </HTML>
>
> > > > > > On Oct 6, 9:51 am, leone <handja...@gmail.com> wrote:
>
> > > > > > > I want use FORM object and helpers objects, but I need complete
> > > > > > > control over html code.
> > > > > > > Exists a factory method as in SQLFORM, so I can code
> > > > > > > <HTML>
> > > > > > > ......
> > > > > > >  {{=form.begin}}
> > > > > > >  {{=form.widget.x}}
> > > > > > >  {{=form.widget.y}}
> > > > > > >  {{=form.submit}}
> > > > > > >  {{=form.end}}
> > > > > > >   ......
> > > > > > >  </HTML>
> > > > > > > ???
> > > > > > > If not, exist an alternative way to obtain the advantages of
> > web2py
> > > > > > > and html flexibility?
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"web2py-users" group.
To post to this group, send email to web2py@googlegroups.com
To unsubscribe from this group, send email to 
web2py+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/web2py?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to