Is there a way to add a button onto a Suitelet Lis...
# suitescript
s
Is there a way to add a button onto a Suitelet List Row and then call to a client script function? When I add a button to the List it is working no problem. But if I try to call that same function from a button on a Row it says the function is not defined. Any ideas?
The button on the list that is working is BLUE and the button on the row that is not working is RED
n
Please share the screenshot of the button and the client script code snippet.
s
This is the screenshot and the client script
Copy code
/**
 * @NApiVersion 2.1
 * @NModuleScope SameAccount
 *
 */
define(['N/ui/dialog'], function (dialog) {
  let exports = {};

  function sendSms() {
    dialog.alert({
      title: 'Test',
      message: 'button was clicked'
    });
  }
  exports.sendSms = sendSms;
  return exports;
});
b
what does the code for the send sms button look like