
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎02-18-2025 09:08 AM
I know that it is possible for users to email information via the Email Client option available for table forms like incidents. There is some concern that users could be including confidential information. Is there a way to run an onload script to post a warning? I was looking at the Email Client Templates and there doesn't appear to be something that I can directly hook onto for the onload action. Anyone know if this is possible?
Solved! Go to Solution.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎02-20-2025 11:55 AM
KKM's UI Script code with a few modifications worked for me.
(function() {
function showWarning() {
if (window.top.document.title.includes("Compose Email")) {
alert("Warning: Do not include confidential information in emails.");
}
}
window.onload = showWarning;
})();

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎02-20-2025 12:54 PM
That worked!!!! I like that it is targeted and displays nicely!!!! Thanks to you and KKM!!!!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎02-20-2025 11:41 PM
@peterscaramuzzo - Thanks for accepting the solution provided and appreciate your vote on the "like" icon.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎02-20-2025 11:47 PM
@DrewW - Appreciating you on accepting the solution provided and it worked for you. The comments given to me that means and values a lot.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎02-25-2025 07:54 AM
FYI this initial solution was a HUGE help as I have said. I did look into modifying it so there is banner at the top instead. As the user told me they might pay more attention to that which I agree. Here is my modified solution FWIW in case anyone can use this.
(function() {
function showWarning() {
if (window.top.document.title.includes("Compose Email")) {
showBanner();
}
}
window.onload = showWarning;
})();
function showBanner()
{
var elemDiv = document.createElement('div');
elemDiv.style.cssText = 'width:100%;height:20%;background:rgb(192,192,192);color:red; font-weight:bold;margin-left:auto;margin-right:auto;font-size:1.2em;';
elemDiv.innerHTML = "<br/> <i><u>Warning:</u></i> Do not include sensitive information" ;
elemDiv.style.textAlign = 'center';
window.document.body.insertBefore(elemDiv, window.document.body.firstChild);
}

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎02-18-2025 12:47 PM
I like where you are going with this Mahesh!!!! I was thinking a UI Action with this in the script; alert("TEST"); for table sys_email_client_template but no luck. Is it because as you said Drew it is because this is not the table that ultimately opens the UI page? I am not sure how a UI Script can be targeted for that email dialog box opening?