Skip to main content

Command Palette

Search for a command to run...

How to hide the Oracle APEX success message using JavaScript

Hide Oracle APEX success message

Updated
1 min read
How to hide the Oracle APEX success message using JavaScript
A

I am an experienced IT professional with over 10 years of expertise in ERP, specializing in manufacturing and finance modules.

As a solution architect, I am skilled in Oracle PL/SQL and Oracle APEX, with experience in software development, project management, and solution architecture.

Leveraging my expertise in Enterprise Performance Management (EPM), I help businesses make data-driven decisions and improve their performance.

I am committed to staying current with the latest trends and technologies in the industry and enjoy collaborating with colleagues and clients to design and implement solutions that align with their unique business needs.

If you would like to learn more about my experience or have any questions, please feel free to connect with me.

Introduction

When building applications in Oracle APEX, it's common to display success messages to the user after specific actions, such as submitting a form or updating data. However, in some cases, it may be desirable to hide these success messages after a few seconds. This tutorial will help you implement a solution to this using JavaScript.

Video Tutorial

Steps

apex.jQuery(function() {
  apex.theme42.util.configAPEXMsgs({
    autoDismiss: true,
    duration: 3000  // duration is optional (Default is 3000 milliseconds)
  });
});
  • Go to the Global Page( Page30)

  • Click on Dynamic Actions

  • Create a Dynamic Action of type "Execute JavaScript Code" on the page load

  • Paste the copied code snippet. Adjust the duration and click OK, then Save the page.

Outcome

The message will be hidden after the duration specified in the code. Thus the user need not close the success message manually.

How to? Oracle APEX

Part 7 of 10

This series intended to address common challenges faced during the Oracle APEX development.

Up next

How to set a background image for the APEX login page?

Background image for login page

Hide success message in Oracle APEX using JavaScript