Maybe you should wrap the onclick with require or ...
# suitescript
i
Maybe you should wrap the onclick with require or define.