Skip to Main Content

APEX

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Interested in getting your voice heard by members of the Developer Marketing team at Oracle? Check out this post for AppDev or this post for AI focus group information.

apex.message.confirm showing HTML tag in confirm alert

pkpandaApr 24 2025

I have create a da on button click to open a confirm alert for the user. I am using javascript to open the confirm alert and the values are coming from different items and I want to display some text in bold.

This is my code to open the alert when user clicks the Open Alert button. The reason I am using javascript I have to do 2 different actions based on user selection.

var info = apex.item("P1_PROMPT_ALERT").getValue();
var title = $v('P1_ALERT_TITLE');
var summary = $v('P1_ALERT_SUMMARY');
var act = $v('P1_ALERT_ACTION');

apex.message.confirm( summary+"\n"+info+"\n" +"<strong>"+act+"</strong>", function( okPressed ) {
if( okPressed ) {
window.location.reload();
}
else{
apex.navigation.dialog.close(true);
} }
, {
title: title,
style: "warning",
cancelLabel: "Cancel",
confirmLabel: "Get Data"
} );

Comments
Post Details
Added on Apr 24 2025
2 comments
75 views