[web2py] Re: SQLFORM, custom, widget

2016-04-05 Thread 'DenesL' via web2py-users
Chapter 7: http://web2py.com/books/default/chapter/29/07/forms-and-validators in different sections: process http://web2py.com/books/default/chapter/29/07/forms-and-validators#The-process-and-validate-methods custom & widget http://web2py.com/books/default/chapter/29/07/forms-and-validators#Cust

[web2py] Re: sqlform custom widget

2011-02-23 Thread Niphlod
uhm ok, this makes perfect sense I'm trying to display a field that contains html codes (very basic ones, like 'a', 'strong', 'u' and so on) edited through a wysiwyg ...ideally it would be in a div with a basic css ongoing with it I'll put in the returned values of the controller also

[web2py] Re: sqlform custom widget

2011-02-22 Thread DenesL
On Feb 22, 4:37 pm, Niphlod wrote: > Hi, am I missing something or custom widgets when field is not > writable ends up to be forgotten (i.e. default string representation > is done on these fields)? > > I'm using something like: > > #controller >     record = db.mytable[1] >     record.textfield

[web2py] Re: sqlform custom widget

2011-02-22 Thread Massimo Di Pierro
widgets are only used for input. If the field is not writable SQLFORM uses db.table.field.represent(value) instead. On Feb 22, 3:37 pm, Niphlod wrote: > Hi, am I missing something or custom widgets when field is not > writable ends up to be forgotten (i.e. default string representation > is done