cforms II User Forum

Registration is currently disabled.
Guest

FAQs

Login form protected by Login LockDown.


Lost password?
Advanced Search

— Forum Scope —

  

— Match —

   

— Forum Options —

    

Wildcard usage:
*  matches any number of characters    %  matches exactly one character

Minimum search word length is 4 characters - maximum search word length is 84 characters

Topic RSS
Prepopulated text in Textareas with line breaks
December 10, 2007
1:56 pm
Michael Oeser
Guest

Please replace the ??? with your data!


[desc]:
Hi Oliver,

I would like to offer a form which uses a pre populated text that can be send to the receipient in a textarea. Since this text is a little longer, it needs some line breaks.

Of course I found a way to show the text prepopulated in the textarea but can´t find a way to use the line breaks. "[br]" (of course with <> but that wouldn´t show up here) or "\\n" does not work and is displayed as regular text such as

"blablabla blabla[br]laberrabbarber"

instead of

"blablabla blabla
laberrabbarber"

How can I manage that?

December 10, 2007
7:24 pm
Oliver
Munich, Germany
Admin
Forum Posts: 6400
Member Since:
March 6, 2005
Offline

Unfortunately the form configuration doesn't allow to enter carriage returns (since it's only a single line input field).

A workaround (not too elegant though) would be to add enough spaces after the  last letter of a given line to enforce a new line.  

Forum Timezone: Europe/Berlin

Most Users Ever Online: 959

Currently Online:
47 Guest(s)

Currently Browsing this Page:
1 Guest(s)

Top Posters:

tracedef: 43

mores: 21

Gyrus: 20

frozenwaste: 18

asuffredini: 15

photoworks: 14

Member Stats:

Guest Posters: 3730

Members: 1463

Moderators: 3

Admins: 2

Forum Stats:

Groups: 1

Forums: 4

Topics: 5331

Posts: 18691

Newest Members: juredujmovic, dreamkeeper, rajattyagi, wrokaa, lukass

Moderators: Paul (421), cnymike (8), sonika (95)

Administrators: Oliver (6400), Nicky (3)