Is it possible to add a submit button to a suitele...
# suitescript
a
Is it possible to add a submit button to a suitelet form that has an alternate dropdown option?
b
there is no option that is easier than adding it yourself via javascript
l
I always add more button for this use case/…
a
I need to post my form for two different actions that both need to save files from file upload fields
As far as I know, this isn't possible with a regular button and client script
b
whats the difference between the 2 buttons
l
you can use jquery if you want to create your own submit action.
a
They should both create a record but with different values and logic
I can't rely on anything non-native like document manipulation
l
can you pass everything to backend and use userevent to do the trick?
b
my recommendation would be to cheat a little and make your custom button click the regular submit button
you could probably also get the form from the document and submit it manually