how to add custom field to SQLFORM

14 views
Skip to first unread message

Jurgis Pralgauskis

unread,
May 11, 2009, 1:02:20 PM5/11/09
to web2py Web Framework
Hello,
I want to use customised dropdown field in my app,
but dont want to to duplicate the code..

my dropdown has the tree structure in it
like in http://groups.google.com/group/web2py/browse_thread/thread/7091d1d67e28a914/c7df08450949c0e8

I found I could use
form.components[0].append(myfield)
but actually, I'd like to substitute some specific dropdown field with
it

what's the best way?

as there might be some validation issues..

mdipierro

unread,
May 12, 2009, 11:28:43 PM5/12/09
to web2py Web Framework
I think you need to create a widget. I cannot say because it really
depends on details.

On May 11, 12:02 pm, Jurgis Pralgauskis <jurgis.pralgaus...@gmail.com>
wrote:
> Hello,
> I want to use customised dropdown field  in my app,
> but dont want to to duplicate the code..
>
> my dropdown has the tree structure  in it
> like inhttp://groups.google.com/group/web2py/browse_thread/thread/7091d1d67e...
Reply all
Reply to author
Forward
0 new messages