Reply to comment

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))


Reply

The content of this field is kept private and will not be shown publicly.
  • Allowed HTML tags: <a> <p> <span> <div> <h1> <h2> <h3> <h4> <h5> <h6> <img> <map> <area> <hr> <br> <br /> <ul> <ol> <li> <dl> <dt> <dd> <table> <tr> <td> <em> <b> <u> <i> <strong> <font> <del> <ins> <sub> <sup> <quote> <blockquote> <pre> <address> <code> <cite> <embed> <object> <param> <strike> <caption>
  • Lines and paragraphs break automatically.
  • Web page addresses and e-mail addresses turn into links automatically.

More information about formatting options

CAPTCHA
This question is for testing whether you are a human visitor and to prevent automated spam submissions.
Image CAPTCHA
Enter the characters (without spaces) shown in the image.

Poll

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