Here after default/delformforscreen.load accepts the form 
default/screen.html should load. How do I do that? It ain't working the way 
I thought. So I marked comment signs infront of that (see below) .

def screen():
    row=db(db.info.info_id==auth.user_id).select().first()
    if row:
        grouprow=db(db.joiners.joiner_id==auth.user_id).select()
    return locals()

def delformforscreen():
    row=db(db.info.info_id==auth.user_id).select().first()
    form=0
    if row:
        
form=SQLFORM(db.info,row.id,fields=['first_name','last_name','dob','sex','hometown',
 
'highschool', 'university', 'oneself'],showid=False)
        #if form.process().accepted:
         #   redirect(URL('default','screen'))
    else:
        
form=SQLFORM(db.info,fields=['first_name','last_name','dob','sex','hometown', 
'highschool', 'university', 'oneself'])
    return locals()


{{extend 'layout.html'}}

{{if row:}}
Hi
{{=row.firstname}}

   {{pass}}
<br>
<br>
<h4>
    Update/Edit your Info
</h4>
<br>

   {{=LOAD('default', 'delformforscreen.load', ajax=True)}}

-- 
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].
For more options, visit https://groups.google.com/d/optout.

Reply via email to