Wanted on the web: text field with several rows but not a rich text field

I want a text field with several rows of text (approx. up until 1000 characters). This text should be shown in views also - so I need a text field and cannot use a rich text field.

Problem: A text field will be displayed in a web browser with a single line (because it will be transformed to an input tag).

I do not know how to create a text field that will be transformed to a textarea tag.

Does someone know how to get this?

I also tried several other ideas: Having an RTF and copying its content to a text field triggered by querysave or postsave event - but none of these seem to work with a web browser.

Any more ideas on this problem?

Thanks in advance!

Peter Kursawe

Subject: wanted on the web: text field with several rows but not a rich text field

Use this htmlcode in the form:

hide the HTML code when reading

Put a textfield named Body into the form just below the html code and in the input validation: @ReplaceSubstring(Body;@Char(13):@Char(10);@NewLine:“”)

In the view column use this:

REM {Removing HTML code};

ListHTML1:= “<” : “>” : @NewLine;

ListHTML2:= “<” : “>” : “
”;

Body:=@If(Body=“” ; “” ; @ReplaceSubstring(Body;ListHTML1;ListHTML2));

Body

Subject: wanted on the web: text field with several rows but not a rich text field

I had a similar problem so I created a multi-value text field and set the separators as Stan suggested. That works very well. The problem I have now is trying to email the contents of that text field. When I use the @MailSend function and pass in the text field, I lose all carriage returns and blank lines in the email. If I use an @Implode(textField; @Newline), I get the carriage returns but I lose the blank lines. Any way I can retain both the carriage returns and blank lines?

Subject: wanted on the web: text field with several rows but not a rich text field

Make it a text field that accepts multiple values. You can also fiddle around with its rows & cols properties for the web in the infobox thus:

HTH

Subject: RE: wanted on the web: text field with several rows but not a rich text field

Unfortunately neither of your proposals have any effect: the rows and cols attributes appear in the source but they do not affect input tags :frowning:

Subject: RE: wanted on the web: text field with several rows but not a rich text field

You need to set the field to separate values and display separate values with New Line – comma, semicolon, and space must be deselected in the multivalue options if you want a textarea.

Subject: RE: wanted on the web: text field with several rows but not a rich text field

Thank you, Stan - this seems to work as I want it to.

(but it is not the solution I had come to on my own - very tricky!)

Subject: RE: wanted on the web: text field with several rows but not a rich text field

Try using @Abstract.Hope it works.

Luke

Subject: RE: wanted on the web: text field with several rows but not a rich text field

No, @Abstract doesn’t work because a rich text field cannot be accessed in a view column. But the solution proposed by stan works.

Nevertheless thank you!