Does anybody know how to add (using suitescript on...
# suitescript
m
Does anybody know how to add (using suitescript on a suitelet) a submit button that has a dropdown with multiple options? Like the native submit field on record where you can say Save, Save As, etc…
b
you can get a buggy one by calling Form.addSubmitButton multiple times
m
I saw that but then how do I tell which option was clicked?
It also adds two buttons (buggy)
b
you dont, its extremely buggy
m
thanks!
different subject but since I have you here, any experience with custom plugin types in ns?
b
only the basics, ive never done anything useful with them
m
I created a plugin and it shows up on the script record for a user event script (the plugin tab, the dropdown) however it doesnt show up under the script record for a suitelet, I searched and got absolutely no useful information on what I am missing
b
i dont think suitelets are special in any way
so id say make a new suitelet and plug in
m
I did
still doesnt show up
b
what does your plug in look like
m
Untitled.js
simple function you call get() returns an object of values
b
i meant the plug in record
though your plugin file appears to be missing the jsdoc at the top
m
it has i t
i just didnt copy it
message has been deleted
ooo i swear if its the allow single…
message has been deleted
cannot save with allow multiple selected
b
what does your jsdoc look like?
m
Copy code
/**
 * @NApiVersion 2.1
 * @NScriptType plugintypeimpl
 */
b
meh
works for me
m
weird
b
message has been deleted
m
I will delete everything yet again and re-try
nope doesnt show up for me
i will try in a different environment
works in a diff environment
at this point i will just clear cache, restart laptop and see if it was a caching issue
I appreciate all your time and help!