I forgot to mention that my form is pure html and in the controller I
have:
form=FORM()
if form.accepts
(request.vars,session=None,formname='consuntivi',keepvalues=True):
response.flash="OK"
elif form.errors:
response.flash="Errors"
I noticed that values inserted are always cleared after submission
even if the field is not pre-populated.
My answer is that because the form=FORM() is never passed to the view
I can not have my values kept. Correct?
Any work around for this leaving the form as pure html?
carlo
On 22 Mag, 17:12, carlo <[email protected]> wrote:
> maybe trivial but I can not get the clue: I need to have a form pre-
> populated with some values and I know you can do it with
> form.vars.name='myvalue'. But when I submit the form with
> keepvalues=True I get the form back with the pre-populated values and
> not with the changes the user made.
>
> Any suggestion?
> Thank you
>
> Carlo
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"web2py Web Framework" 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
-~----------~----~----~----~------~----~------~--~---