You need to return the beforeSubmit :beforeSubmit ...
# suitescript
m
You need to return the beforeSubmit :beforeSubmit from the define statement.