Plese use SQLFORM.factory instead of form_factory. For example

in controller

fom=SQLFORM.factory(Field('name'),Field('email'))

in view

<div>
{{=form.custom.begin}}
Name: {{=form.custom.widget.name}}
Email: {{=form.custom.widget.email}}
Click to submit: {{=form.custom.submit}}
{{=form.custom.end}}
</div>

On Sep 12, 9:30 am, Ankit Agarwal <[email protected]> wrote:
> I am using form_factory to create forms for taking input from user .
> However , I wish to display/format the form as it would be displayed
> to the user . How should I go about it ? Please note that I am pretty
> naive when it comes to web technologies and also i have very limited
> knowledge of css .
>
> Thanks in advance
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to