Jacob D
02/05/2025, 6:29 PMCeligo AI
02/05/2025, 6:29 PMAI generated answer (using internal Slack threads):To insert a line break in a custom field of the long text type in SuiteScript using
setText\njavascript
record.setText({
    fieldId: 'custrecord_tran_packages_tran_link',
    value: 'Sales Order #'+orderNum + '\n' + 'Additional Line',
    ignoreFieldChange: true
});<br>javascript
var textWithBr = record.getValue({fieldId: 'custrecord_rich_text_field'});
var textWithNewline = textWithBr.replace(/<br>/g, '\n');
record.setValue({fieldId: 'custrecord_rich_text_field', value: textWithNewline});<br>Celigo AI
02/05/2025, 6:30 PMSlack thread 1: here (available only if the original thread was posted in the last 90 days)
Similarity score: 0.835609198
Slack thread 2: here (available only if the original thread was posted in the last 90 days)
Similarity score: 0.829052567
Slack thread 3: here (available only if the original thread was posted in the last 90 days)
Similarity score: 0.817839622
Celigo AI
02/05/2025, 6:30 PM