Are you trying to add the button to a form on befo...
# suitescript
i
Are you trying to add the button to a form on before load? If so, this is not the right api.