You are doing something evil in page1.html: {{=form[0][0][1]}}
Anyway, given your custom forms and I assume you do not want to change
them. you need to replace
@t2.requires_login(next='login')
def page1():
stus=db(db.student.id).select()
if stus:
form=t2.update(db.student,db.student.id==1)
else:
form=t2.create(db.student)
return dict(form=form)
with
@t2.requires_login(next='login')
def page1():
stus=db(db.student.id).select()
if stus:
db.student['exposes']=['name','id']
form=t2.update(db.student,db.student.id==1)
else:
db.student['exposes']=['name']
form=t2.create(db.student)
return dict(form=form)
Massimo
On Nov 21, 2:27 pm, "Wes James" <[EMAIL PROTECTED]> wrote:
> OK. Here is a demo of the checkbox issue:
>
> http://paste.pocoo.org/show/92051/
>
> Put the code above in to a new app.
>
> Select page 2 and type some text in to the text box and select any
> number of checkboxes and click submit.
>
> Now go to page 1 and click on save
>
> Now go to page 2, you will see that the check box values are set back
> to no checks - the input box stays the same - no change. Now check
> some boxes again and click, submit.
>
> Go to page 3 now and click on submit (page three is css hiding the check
> boxes)
>
> Now go back to page 2 and you will see all is fine.
>
> Does this demo help describe my issue better?
>
> thx,
>
> -wj
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---