Hi All,

I have been testing Py4web and have the following to produce basically a 
'view record' option :-

def view_test():
    form=Form(db.auth_user, record=1, readonly=True, deletable=False, 
formstyle=FormStyleBulma)
    if form.accepted:
        redirect(URL('index'))
    return dict(form=form)

This will redirect if I remove the readonly=True from the form but 
basically form is just displayed (all fields are readonly) and you can hit 
the submit button as many times as you like and nothing will happen.

Any ideas??

BR
John

-- 
Resources:
- http://web2py.com
- http://web2py.com/book (Documentation)
- http://github.com/web2py/web2py (Source code)
- https://code.google.com/p/web2py/issues/list (Report Issues)
--- 
You received this message because you are subscribed to the Google Groups 
"web2py-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to web2py+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/web2py/75b018fb-f3b6-47a4-8b50-fec32d8740ae%40googlegroups.com.

Reply via email to