0

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');

enter image description here

1 Answer 1

1

I'm preventing double (or multiple) click on the submit button with a dynamic action:

enter image description here

  • you have to enter "Request / Button name"
  • turn the "Show processing" option ON; if it is OFF, page isn't grayed out and - if processing lasts some time - you can double (or multiple) click the same button
Sign up to request clarification or add additional context in comments.

1 Comment

I dont want to submit the page bcoz we have different code to run for submit page... we need to validate some data while entering using server side code

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.