For Programmers: Free Programming Magazines  


Home > Archive > PHP Pear > December 2005 > Re: [PEAR] formbuilder longtexts not shown as textareas









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author Re: [PEAR] formbuilder longtexts not shown as textareas
Justin Patrin

2005-12-17, 6:59 pm

On 12/16/05, Leo M=E1rquez <leo@calidae.net> wrote:
> Hi all,
>
> Since moments ago I was working with formbuilder and the longtext mysql
> fields was shown as textareas.
> Now I don't know why these longtext fields are rendered as input type tex=

t.
>
> Anyone knows what could be the problem?
>


They are only automatically displayed as textareas if DB_DO sets them
as a DB_DATAOBJECT_TXT type (AFAIK DB_DO doesn't do this) or if your
text field has a newline in it (FormBuilder checks for this). If you
want them to be forced to be textareas you should override the table()
function in your DO classes to change the type of the field or set the
fb_textFields property of your DO class according to the FormBuilder
docs.

--
Justin Patrin
Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com