Re: formbuilder longtexts not shown as textareas
| From: | Justin Patrin | Date: | Sat, 17 Dec 2005 17:49:01 +0000 |
| Subject: | Re: formbuilder longtexts not shown as textareas | ||
| References: | 1 | Groups: | php.pear.general |
| Request: | Send a blank email to pear-general+get-22288@lists.php.net to get a copy of this message | ||
On 12/16/05, Leo Márquez <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 text.
>
> 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