I want to create warning message exactly as success.
APEX has the default success message:
apex.message.showPageSuccess('OK');
So, instead of this success message, i want to create a warning message like this:
when &AMELIA. < 0.
(AMELIA is an application item).
Now i am using apex.message.alert but it's not the same, because this alert is different:
Can someone help me to create a warning message instead of this black alert message?
Paste the below code in the Function and Global Variable Declearation section
function show_notification(Msg){
apex.message.showPageSuccess(Msg);
$('#t_Alert_Success').attr('style','background-color: #ffe5ad;');
$('.t-Alert-title').attr('style','color: black;font-weight: bold;');
$('#t_Alert_Success div div.t-Alert-icon span').removeClass('t-Icon').addClass('fa fa-warning');
}
How to use:
For example:
show_notification("Your Message");
NOTE: The color and icon can be changed as per the requirement