Introduction :

To stop the user to click a APEX page submit button more than once in Oracle APEX 4.2

Scenario:

The standard way to push the page data back to the APEX server or table is to use an HTML button. One issue with HTML buttons is that they can be clicked more than once, and under certain circumstances this can cause issues.

Steps to follow:

To ensure that the button can only be pressed once you can do the following.

Step 1:      CAPEX Page

Step 2:      Create Page Region

Step 3:      Create Page Button ( Button name as SUBMIT)

Step 4:      Alter button settings so that inside the URL redirect section the URL target value is set to

 javascript:this.disabled=true;doSubmit(‘SUBMIT’)

 Note:

The value inside doSubmit(‘ ’) is the same as the button name.

The button now looks like this when it has been clicked

Output:

 

Call To Action: 

For Oracle apex development and customization please do contact our company website https://doyensys.com/

 Conclusion: 

The button is now coded so that the user can only click it once to submit the page. Any further clicks are ignored.

 

Recommended Posts

Start typing and press Enter to search