I believe if you change it to afterSubmit, you hav...
# suitescript
j
I believe if you change it to afterSubmit, you have to load the record to update fields and then submit the record again. So, in essence, it's opening the already created record, editing it, and then saving it again right after it saves the first time