KM
12/25/2025, 1:17 AMCeligo AI
12/25/2025, 1:17 AMAI generated answer (using internal Slack threads):In order to insert a field without a line break in NetSuite, you can use the
setSublistValue method instead of selectNewLine. This is because the record during beforeSubmit is not in dynamic mode. Here is an example of how you can do it:
javascript
record.setSublistValue({
sublistId: 'salesteam',
fieldId: 'employee',
value: 1,
line: thenextline
});
In this example, thenextline is the line count since it's zero indexed.
As for the issue with the rich text field, it seems that the HTML characters are being output instead of creating the line break. A common practice in such scenarios is to replace the escape characters and the new line characters. You can use the replace method on the string and replace it with "\n" or equivalent to inherit the line break.
******
Disclaimer:
This response was generated by an artificial intelligence assistant based on previous conversations from multiple Slack channels, and may contain inaccuracies or mistakes.
******Celigo AI
12/25/2025, 1:17 AMSlack thread 1: here (available only if the original thread was posted in the last 90 days)
Similarity score: 0.803405821
Slack thread 2: here (available only if the original thread was posted in the last 90 days)
Similarity score: 0.803344846
Slack thread 3: here (available only if the original thread was posted in the last 90 days)
Similarity score: 0.799743772
Celigo AI
12/25/2025, 1:17 AM