× If you expect answers you should describe your problem and give as much information's as possible. (SQL-Structure, Template Code, Joomla Version ...) Please read this before posting: joodb.feenders.de/support.html

Use of a textarea instead of a single-line field

More
11 years 10 months ago - 11 years 10 months ago #913 by mmeadway.gmail
Use of a textarea instead of a single-line field was created by mmeadway.gmail
Is it possible to define a textarea on the form screen? We've looked through the docs and on Google, but there's nothing that indicates how this might be done. We have some text fields that we'd like people to be able to enter a considerable amount of data in, but doing that on a single-line field is a tad inconvenient.

What we'd like to do is something on the order of:

{joodb formtextarea|fieldname|rows|cols}

Is this possible? Or have we overlooked something that is already available?

Thanks!
Last edit: 11 years 10 months ago by joest.

Please Log in to join the conversation.

More
11 years 10 months ago - 11 years 10 months ago #914 by Dirk
you must change the type of the field from varchar or tinytext to text.

joodb will automatically use a textarea for this type.
you can format this textarea then by CSS.

example: if the name of your field is "description"

#description { width: 400px; height: 200px; }
Last edit: 11 years 10 months ago by Dirk.

Please Log in to join the conversation.

Moderators: Dirkjoest