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
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.
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?