Hi all, I am having an issue with the following c...
# suitescript
k
Hi all, I am having an issue with the following code on a before load user event,
Copy code
var expenseSublist = currentForm.getSublist({
    id: "expense"
});
expenseSublist.setSublistValue({
    id: "location",
    line: 1,
    value: 5
});
When the user selects the existing line, makes a change and submits the line then the location field is emptied, but when the user submits the vendor bill as is then location is populated correctly. Is anyone using this code to populate sublists?