Is it possible to create a button like this that h...
# suitescript
n
Is it possible to create a button like this that has different options via suitescript?
b
mostly no
e
@battk is right and you can try and the buttons (multiple submit) will be visible but all of them will trigger the submit event and you won’t be able to tell which of those buttons need to fire the process/function you want.
b
you can get it to look like that by using Form.addSubmitButton multiple times, its just not functional
n
Yeah so alternate option, if I create a dialog with a select in the message, could I pass the value on dialog confirm? @battk
b
depends on how future proof you want it
you can put html in most dialogs, but netsuite's newer records dont support that
fair chance the html in the dialog will stop working in the future
n
Hm okay. Any suggestions? I need a button to trigger printing one quote (from a user selection) or all quotes related to a so.
b
pick your favorite ui framework/library
if you want something specialized for popups, you can use something like https://www.npmjs.com/package/sweetalert2
n
Thanks I'll check it out