Empty lines from text area are not saved

I have a form which is used by both Web and Notes client users. I hide some of the text fields from web and instead use textareas to allow web users enter multiple lines.

I use the following javascript onSubmit to transfer the text from textarea to the real fields:

document.forms[0].txt_sec1_contents.value = document.forms[0].txt_sec1_TA.value

The problem is if web user enters carriage returns, they are all removed when you open the document in Notes client. Although if Notes user enters carriage returns, they are displayed on the web textareas.

Can anybody help please?

Thanks

Basir

Subject: Empty lines from text area are not saved

The values for the returns are submitted (that is, %0D%0A is repeated in the request content when multiple returns are typed in the field), but Domino reads the repeats as trimmable mistakes, so out they go. No fix I know of – except to use rich text fields instead of text fields.

Subject: RE: Empty lines from text area are not saved

rich text field will cause problems if data entry is done both by web and notes, right?