To display values of Multi Line Text in Separate Lines
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎06-01-2023 11:53 PM
Dear Team,
function onLoad() {
//Type appropriate comment here, and begin script below
var major = g_form.getValue('product_id_s');
var value1 = major.split(' ');
alert("item length:" + value1.length);
var bs = [];
var resp = '';
for (var i = 0; i < value1.length; i++) {
resp = value1[i].split('\n');
bs.push(resp[0]);
}
g_form.setValue('product_id_s', bs.join('\n'));
}
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎06-01-2023 11:54 PM - edited ‎06-02-2023 12:24 AM
@OlaN Sir or anyone who can help on this.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎06-02-2023 12:52 AM
Hi,
I had a look at this requirement, and I have some trouble understanding.
If you want to show line separated values in the multi-row-variable-set-widget, you will have to make modification on the widget itself. I would not recommend that approach.
When I tried for myself, I noticed that regardless if the user enters a text that is line separated or space separated, the widget displays the value in the same manner, but when editing the input, one can see that the line breaks are stored.
So I would try using it as is, and don't mess around with how it is displayed after the input is entered.
See attached images for clarification.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎06-02-2023 02:16 AM
@OlaN sir, Thanks for giving the useful information. I understand what you want to conveyed.
So sir is there any alternative way to do something like when user enters the values it will displayed in separate lines.
Thanks

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎06-02-2023 04:22 AM
An alternate way to show the lines with a multi-line input, is to use that variable separate (not included in an MRVS).