I added the client script in the doFind function form.addButton({ id : 'reset', label : 'Reset', functionName: 'setButton' }); form.clientScriptModulePath = 'SuiteScripts/SuiteScript 2.0/Client/setButton_client.js';