Skip to Main Content

APEX jQuery Confirm Dialog

This article explains how to utilize jQuery Confirm dialog in APEX. It is also shown how to overwrite all standard APEX delete confirmation dialogs without changing Delete button URL targets.

If you are using APEX 3.x load jQuery and jQuery UI library's in page template header or page HTML header.

To start with, create HTML region to page zero:

  • Display Point "Before Footer"
  • Template "No Template"

Copy paste HTML and javascript to the region source:

<div id="htmldb-confirm-dialog" class="hideMe508">
<p class="fielddatabold"></p>
<script type="text/javascript">
 function htmldbConfirmDialog(pReq,pOpt){
   title:'Confirm Action',
   message:'Do you like perform this action?'

Function parameters are:

  • pReg: Request of submit
  • pOpt: All possible that can be used in jQuery UI dialog + message that is dialog inner HTML

If you have delete button on APEX form, just replace URL target of that button:


Of course, this can be utilized for any other Submit buttons.

The work of changing all Delete buttons URL targets can be simplified by adding helper function that converts standard delete confirmation dialog to jQuery dialog (i.e. no need to do modifications to button URL target):

<div id="htmldb-conf-dialog" title="Confirm"></div>
<script type="text/javascript">
function confirmDelete(m,r){


  • Jari Laine 9 Jan 2011
    Hi, What you mean by "procedure ends" ?
  • alf 8 Jan 2011
    hi there! i want to implement this procedure in relese 4 but i want to show the confirm when a prcedure ends .. can you help me...tx in adcance