Prevent pasting images in Type=HTML fields
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-09-2025 11:51 PM
Hello,
I noticed that pasting an image into a Type=HTML field causes it to be immediately posted as an image in the activity.
Since there's a risk of unintended images saved to the clipboard being posted, is there a way to prevent image pasting altogether?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-10-2025 12:11 AM
@Saeka , This is expected behavior. When you paste an image into an HTML field, ServiceNow automatically attaches it and displays it in the activity stream.
If you want to disable image pasting, you can do so by adding a UI Script or onChange Client Script that blocks paste events for that field.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-10-2025 01:09 AM
@Community Alums , Thank you for your response. Would it be possible for you to provide a specific script?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
4 weeks ago
@Saeka did you find any solution to this?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
3 weeks ago
@MohammedMoeiz , it's not resolved yet.
