If it's part of a workflow, you can have a State t...
# suitescript
b
If it's part of a workflow, you can have a State to add the button and then go to the next state when that button is clicked