You can use form.custom:
{{=form.custom.begin}}
Title: {{=form.custom.widget.title}}
{{=form.custom.end}}
Or if you don't want to use the widgets serialized by web2py, you can
replace them with html but you must follow the naming convention. I
would read on page 235 (labeled 219) of the manual for more info:
http://web2py.com/examples/default/docs
On Oct 10, 11:51 am, "[email protected]"
<[email protected]> wrote:
> Hi I have a controller function:
>
> def settings():
>
> form = SQLFORM(db.settings)
>
> if form.accepts(request.vars,session):
> response.flash = 'form submitted'
> elif form.errors:
> response.flash = 'form has errors'
> else:
> response.flash = 'please fill out the form'
> return dict()
>
> and a view:
>
> {{extend 'layout.html'}}
> <h1>Settings</h1>
> <form>
> Title:<input id='settings_title' name='title'/><br />
>
> <input type='submit' />
>
> </form>
>
> but whenever I display the form and hit submit, I only ever get
> 'please fill in form' - am I doing something really stupid.
>
> thanks
>
> Portly
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---