Re: [web2py] Re: populate form in view

2015-08-26 Thread Jim Steil
Thanks for the correction Anthony, I didn't know that. -Jim On Wed, Aug 26, 2015 at 10:07 AM, Anthony wrote: > There's nothing wrong with calling .process() when the form is first > defined. Your code is exactly equivalent to the original. > > Anthony > > -- > Resources: > - http://web2py.com >

[web2py] Re: populate form in view

2015-08-26 Thread Anthony
There's nothing wrong with calling .process() when the form is first defined. Your code is exactly equivalent to the original. Anthony -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code) - https://code.google.com/p/web2py/is

[web2py] Re: populate form in view

2015-08-26 Thread Jim S
I'm confused by the use of .process() at the end of your SQLFORM instantiation. Instead, I would do this: form = SQLFORM(db.certificate_request) if form.process().accepted: response.flash = 'new CSR registered' redirect(URL('customerArea', 'index') Hope that helps. -Jim On Tuesday, A

[web2py] Re: populate form in view

2015-08-25 Thread Iancic Bogdan
sure form = SQLFORM(db.certificate_request).process() if form.accepted: response.flash = 'new CSR registered' redirect(URL('customerArea','index')) On Tuesday, August 25, 2015 at 2:51:27 PM UTC+2, Jim S wrote: > > Can we see the form definition from your controller? > > -Jim >

[web2py] Re: populate form in view

2015-08-25 Thread Jim S
Can we see the form definition from your controller? -Jim On Tuesday, August 25, 2015 at 7:16:49 AM UTC-5, Iancic Bogdan wrote: > > I want to populate a form, besides the input that the user inserts. > > This is the code from view: > > var MattsPublicKeyString = cryptico.publicKeyString