Then do the below on adding the new line.```var li...
# suitescript
k
Then do the below on adding the new line.
Copy code
var lineNum = objRecord.selectNewLine({
sublistId: 'item'
});
objRecord.setSublistValue({
sublistId: 'item',
fieldId: 'item',
line: 3,
value: true
});