Hiding submit button on Crud forms

67 views
Skip to first unread message

mr.freeze

unread,
Jun 30, 2011, 9:16:04 PM6/30/11
to web2py-users
Hello! I've been away for a while but am diving back into web2py for a
new project. I want to host my Crud forms in jqueryui dialogs so I
need to hide the submit button. I know I can do it using
form.element("input",_type="submit")["_style"] = "display:none;"
trickery but I want to avoid extra processing like this. With SQLFORM
you can pass buttons=[] but not so much with Crud. Am I just missing
it?

Giacomo Dorigo

unread,
Jul 19, 2014, 4:30:31 AM7/19/14
to web...@googlegroups.com
I also did't find how to do that with CRUD, neither understood if there's a way to customize the submit button label.

Massimo Di Pierro

unread,
Jul 20, 2014, 11:41:39 AM7/20/14
to web...@googlegroups.com
Please do not use crud. That code has not been touched in 3 years. There is really nothing in crud that cannot be done better with SQLFORM(..).process()

Giacomo Dorigo

unread,
Jul 20, 2014, 6:02:56 PM7/20/14
to web...@googlegroups.com
Thank you Massimo, I was sensing something like that :)


--
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 a topic in the Google Groups "web2py-users" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/web2py/vulVLm48mPg/unsubscribe.
To unsubscribe from this group and all its topics, send an email to web2py+un...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply all
Reply to author
Forward
0 new messages