Blank lines in textarea on web

Hi.

I have a text field that is set to allow multiple values, with “Separate values when user enters” set to Blank Line and New Line, and “Display separate values” set to New Line. This produces a textarea element in the form for the browser, which is just what I want.

However, if the user enters a blank row, the blank value is removed when the document is saved. For example, this

line 1

line 3

is saved as only two entries, so the next time you open the document, you see

line1

line3

How can you preserve the blank lines? Thanks.

Subject: Blank lines in textarea on web

Steve,

Since you are passing the value to a browser, you are going to have to come up with a way to translate the blank line to an HTML tag that will approximate a blank line, like say a
or a

tag. Without those tags, your run of the mill web browser will ignore the blank line.

hth.

brandt

Subject: RE: Blank lines in textarea on web

Thanks Brandt. My problem is actually before that point. When the server saves the document, the blank rows (which I would think would become blank entries in the multi-value field) are removed. So that if the user entered:

line1

line2

line4

The saved results are “line1” : “line2” : “line4”

I want the saved results to be “line1” : “line2” : “” : “line4”

Then the next time the document was opened I would do the kind of translation you described to show the blank entry as a blank line. But how do I get it to save the blank line as a blank value?

Subject: Blank lines in textarea on web

“set to Blank Line and New Line”

That Blank line tells Domino that a blank line is a value delimiter. If you set it to “New Line” only, it should work.

/Peter

Subject: RE: Blank lines in textarea on web

I’ve tried this too but it doesn’t work. Any other ideas? Thanks, Steve

Subject: Blank lines in textarea on web

Do you really need to have multiple values? If not a better solution is the following:

  1. Editable text field (hidden from Web).

  2. HTML to build the text area (drop the leading apostrophe):

'

  1. Formula for the computed text should be the name of the field.

Subject: RE: Blank lines in textarea on web

Thanks James. That should do it.

Subject: RE: Blank lines in textarea on web

I would just like to add that this function will not work if ‘generate HTML for all fields’ is checked.

Ta.

Adam.