- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎02-01-2024 06:13 AM
Hi,
So there is a requirement that if the 'Resolution Code' = Known Error on the incident form then an attachment needs to be mandatory of a Knowledge article. How would I achieve that functionality? To make the (📎) thats on top of the form mandatory, what would be needed?
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎02-02-2024 02:53 AM
Make a Business Rule as below on the incident table :
(function executeRule(current, previous /*null when async*/ ) {
if (current.hasAttachments() != true) {
gs.addInfoMessage("Please add a relevant knowledge article to proceed!!!");
current.setAbortAction(true);
}
})(current, previous);
Output :
Thanks & Regards
Amit Verma
Please mark this response as correct and helpful if it assisted you with your question.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎03-04-2025 02:26 AM
Preferred way would be Business Rule as client script requires DOM Manipulation.
Please mark this response as correct and helpful if it assisted you with your question.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎03-04-2025 02:42 AM
@Amit Verma - thanks a lot for your help!