- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-07-2025 04:47 AM
where do you want this?
native or portal?
If portal then which page?
If my response helped please mark it correct and close the thread so that it benefits future readers.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-07-2025 10:46 AM
It needs to be done on native, incident/case form.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-07-2025 04:53 AM
If it is on Native View:
1. Use Client Script (onSubmit): This ensures that users cannot save/update the record unless Work Notes are filled when attachments exist.
If it is Service Portal view:
1. Customize the form Widgets or Use spAttachment events
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-07-2025 10:47 AM
Yes I tried client script but was unable to do it. Can you please help with script.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-07-2025 10:51 AM - edited 07-07-2025 10:52 AM
Above it mentions widget and you said client script...
- Client script > backend
- Widget is for portal > frontend
- Catalog client script > frontend..
- For the Portal there is a variable type "attachment", so for that particular record producer or catalog item you can hide the "standard attachment icon" and set the catalog client script if the variable type of attachment is populated (file is added) then make some field visible and mandatory.
Let's define what part of ServiceNow are we talking about and then we can think of the design and solution.