Is it possible to make a custom "Save & ____" ...
# suitescript
e
Is it possible to make a custom "Save & ____" button? I need to conditionally show a button on a form, and perform an aftersubmit when that button is pressed, but not when the regular 'save' option is selected.
c
We're doing that, albeit in a hacky way: we add a button on beforeLoad which triggers a client script. The client script sets the value of a hidden checkbox field to "true," then triggers the
click()
method on the Save button. In the afterSubmit, if that field value is true, we perform our conditional afterSubmit action and set the field to false. There's probably a better way, but this works for us! ¯\_(ツ)_/¯
💡 2
e
@José Gómez I saw that but want to avoid using workflows if possible. Long story.
👍 1