
- 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 10:19 AM

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎02-21-2025 04:56 AM
I didn't get an error nothing showed

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎02-18-2025 10:35 AM
Well I thought it was a UI Page but it is not so the page is a backend one that we do not have access to.
So if maheshkhatal suggestion does not work you can try a UI Script to see if a global UI Script loads when that page loads. If not then you are going to have to put a banner announcement on the record form telling people not do put things in an email.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎02-20-2025 06:49 AM
I am not sure how can a UI Script be targeted for the compose email action specifically? I suspect I can look if the title bar contains "Compose Email". However, it doesn't appear to be triggering a warning when adding an alert statement in the global script.

- 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;
})();