Yes. One way to do it is
form=SQLFORM.factory(Field('name'),
Field('gender',requires=IS_IN_SET(('Male','Female'))))
(gender field will be render with select dropbox).
You can embed it in template with
{{=form}}
or customized
{{=form.custom.begin}}
<table>
<tr><td>{{=form.custom.widget.name}}</td></tr>
<tr><td>{{=form.custom.widget.gender}}</td></tr>
</table>
{{=form.custom.submit}}
{{=form.custom.end}}
On Nov 26, 2:12 am, kurdt <[email protected]> wrote:
> hi,
>
> i am actually a django user, I want to try web2py, but I could like to
> know if web2py has FORMS? Forms that can be customize not the one that
> inherit from a MODEL. And of the coolest things I like about Django is
> there FORMS, very flexible (adding custom function or overriding
> function). Does web2py have Forms similar to django?
--
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.