You don't need that script to hide the id, just set the showid param in 
SQLFORM to False.
See the signature of the SQLFORM constructor:
http://web2py.com/books/default/chapter/29/07/forms-and-validators#SQLFORM

Denes


On Wednesday, March 30, 2016 at 4:00:13 PM UTC-4, Jacob Devin wrote:
>
> def screen():
>     dpform=SQLFORM(db.info,row.id,fields=['dp']).process()
>     return locals()
>
> def delformforscreen():
>     row=db(db.info.info_id==auth.user_id).select().first()
>     
> form=SQLFORM(db.info,row.id,fields=['first_name','last_name','dob','sex','hometown',
>  
> 'highschool', 'university', 'oneself']).process()
>     return locals()
>
> in view:
> default/delformforscreen.load
> <script>
> jQuery(document).ready(function(){
>   jQuery('#info_id__row').hide();
>     jQuery('#info_id__row').hide();
>     });
> </script>
> {{=form}}
>
> in default/screen.html:
>
> {{extend 'layout.html'}}
> {{=dpform}}
>    {{=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 web2py+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to