I have a button which uses DA and executes the server side code... when there is a low network user clicks the button multiple times which cause duplicate entry... I want to disable when user clicks the button and enable after completing the process... I have achieved this but when PLSQL raises the raise_application_error the disabled button is not enabled.. Tried this.. Let me know how to achieve this
Event: Click
Selection Type: Button
Button: ADD
True Action: Execute JavaScript Code
$(this.triggeringElement).prop('disabled', true);
$(this.triggeringElement).addClass('is-disabled');
True Action: Execute server side Code (which raises the error)
For this created another DA
Event: Custom
Custom Event: apexerror
Selection Type: JavaScript Expression
JavaScript Expression:
$('button.is-disabled').prop('disabled', false).removeClass('is-disabled');

