Disable OK button on UI Page after single click

Jeffrey Beaudry
Kilo Sage

I have a UI Page that asks for users input from a drop-down, and then they select OK to initiate the workflow.

 

I am noticing that the window is staying open while processing, which allows the user to click on the OK button multiple times.  This causes the workflow to initiate multiple times as well.

 

Is there a way to disable the button after a single click?

 

Thank you.

1 ACCEPTED SOLUTION

It looks like I was able to fix this issue with a combination of the SN Ok/Cancel buttons and the following in the Client Script: 

var ok = document.getElementById("ok_button");
ok.disabled = true;

View solution in original post

5 REPLIES 5

It looks like I was able to fix this issue with a combination of the SN Ok/Cancel buttons and the following in the Client Script: 

var ok = document.getElementById("ok_button");
ok.disabled = true;