Hi John What you say doesn't make much sense because you can style and view data however you wish, including in a readonly form. Similarly a button can redirect your users to wherever you wish. You don't need the framework forms for that. Just style your page how you wish.
On Saturday, 21 March 2020 08:11:39 UTC, John Bannister wrote: > > Hi Massimo, > > > > My use case is really to give the user the option to view data stored in a > table without the ability to change anything hence readonly. Once they have > finished viewing the form (normally by hitting the submit button) they will > be redirected to whatever. > > > > Hope it makes sense > > John > > > > *From:* [email protected] <javascript:> [mailto: > [email protected] <javascript:>] *On Behalf Of *Massimo Di Pierro > *Sent:* 21 March 2020 07:36 > *To:* web2py-users > *Subject:* [web2py] Re: Py4web readonly Form > > > > You may be right but what is the meaning of submitting and accepting a > readonly form? What is a use case? > > > On Friday, 6 March 2020 00:53:17 UTC-8, John Bannister wrote: > > 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 [email protected] <javascript:>. > To view this discussion on the web visit > https://groups.google.com/d/msgid/web2py/2089781a-8a2e-4b62-90d4-98a6183b375b%40googlegroups.com > > <https://groups.google.com/d/msgid/web2py/2089781a-8a2e-4b62-90d4-98a6183b375b%40googlegroups.com?utm_medium=email&utm_source=footer> > . > -- 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 [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/web2py/0805beda-5c1b-4733-8338-4bce43b9342d%40googlegroups.com.

