I have a custom button on a sales order. After it ...
# suitescript
s
I have a custom button on a sales order. After it is clicked, how can I disable it to prevent multiple clicks?
z
Create the button in a workflow and have that trigger the next event. It will natively ask you if you really want to submit the data again with a popup
s
Can't unfortunately. I need this to be scripted as it's a little special
z
Gotcha. I had this same issue and I converted it to a workflow with a workflow action script that passed the logic the same way as the previous way.
e
currentRecord.get().getField('custpage_requeue_bh').isDisabled = true
using your id of course