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

Objective:

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. 

Solution:

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

Step 1: Crete APEX Page

Step 2: Crete Page Region

Step 3: Crete Page Button

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:




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

Comments

Popular posts from this blog

Highlight the cell of Interactive Report based on Search Criteria in Oracle APEX

Querying Data From Flat Files in Oracle

Number of Tables by The Number of Rows in Oracle Database

Save Selected Interactive Grid Records into a Collection - Oracle APEX

Highlight Data That Meet Certain Criteria in Oracle APEX Report

Return a Validation Message using JavaScript if the Oracle Application Express Item is Empty

Remove X (Close Mark) from Oracle APEX Modal Dialog

Display User Rating Icons Dynamically in Oracle APEX Report

Printing Page Numbers in RTF Template [Oracle BI Publisher]

Find Where Specific Table or View is Used in Oracle Database