- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-20-2024 11:57 PM - edited 08-21-2024 12:05 AM
Hi EveryOne,
Can you please tell me how we can disable an Attachment from Incident form?
@Ravi Gaurav can you help
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-21-2024 07:17 AM
You can use the below on Client Script:-
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-23-2024 11:21 PM
Can you try this on BR (after Insert)
// Set the Attachments field to readonly
function onDisplay() {
var gr = new GlideRecord('incident');
gr.addQuery('sys_id', current.sys_id);
gr.query();
if (gr.next()) {
gr.attachments.setReadOnly(true);
}
}
please let me if it works
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-21-2024 07:17 AM
You can use the below on Client Script:-
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-23-2024 11:21 PM
Can you try this on BR (after Insert)
// Set the Attachments field to readonly
function onDisplay() {
var gr = new GlideRecord('incident');
gr.addQuery('sys_id', current.sys_id);
gr.query();
if (gr.next()) {
gr.attachments.setReadOnly(true);
}
}
please let me if it works