How to Fix a Multiline Comment in a Lotus Notes Application

If you are working on a web project and need to get a comment form with a multiline text field, you use the following field options:

Lotus web form field properties

and you might use the following Translation:

@Implode(@ThisValue;@NewLine)

The field looks like this:

Lotus web form field looks

When a user types in a comment without inserting a line break, you can easily get the field value after the document is submitted with

document.getElementsByName("Comment")[0].value

because, naturally, the field is shown in the HTML:




However, when a user types in a comment and inserts a line break,

the Lotus form with a multiline comment entered

there's no hidden field data in HTML



(the field should be here)

and you get the "... is null or not an object" exception trying to get this value:

The error that appears, when you try to get the data

Thus, you can't use/process the data, which is lost on a page refresh for the user.

The Fix

Instead of writing the following in the Translation

@Implode(@ThisValue;@NewLine)

you need to use the following:

@Implode(@ThisValue;@Char(10))


Poll

Which realtime collaborative platforms are you using mostly in your business?: