[web2py] Extracting just submitted details in a redirect

2023-08-20 Thread mostwanted
I have a student registration form that immediately after registering a student I want to use those details in another form, a payments form to enter that student's payment status but my code keeps returning none like student is not available, I am doing something wrong here please assist me f

[web2py] Re: Extracting just submitted details in a redirect

2023-08-20 Thread Clemens
Hi, could it be that the problem is, you're passing the students name (vars={'student_name': student_name}) but then reference to form.vars.student as student.id? Regards On Sunday, August 20, 2023 at 1:04:51 PM UTC+2 mostwanted wrote: > I have a student registration form that immediately aft

[web2py] Re: Extracting just submitted details in a redirect

2023-08-20 Thread mostwanted
I managed to get it going, thanks for highlighting that mistake *form=SQLFORM(db.store_registration)if form.process().accepted: response.flash=T('Details Registered')student_id = form.vars.id_number# Redirect to payments view with student's name as para