How to make attachment mandatory in incident Form
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-11-2019 11:10 PM
Hi
we have a requirement called make attachment mandatory in the incident form
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-11-2019 11:13 PM

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-11-2019 11:18 PM
Hello,
Below link might help you :
Regards,
Sanket
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-11-2019 11:33 PM
Hello Sriram,
You can check out my article on:
Possible Ways for Making an Attachment Mandatory : Service Portal/Native UI,
You can select incident table and do the same.
Please mark as Correct Answer/Helpful, if applicable.
Thanks!
Abhishek Gardade
Abhishek Gardade

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-12-2019 12:20 AM
Hello Sriram,
Yes, you can make attachment as mandatory on the form.
Forex :if you are looking for "incident" form then write a "Business rule before insert"
Script:
if (current.hasAttachments() == true)
{
gs.addInfoMessage('There is an attachment');
}
else
{
gs.addErrorMessage('There is no attachment');
current.setAbortAction(true);
}
I am attachment screenshot for your reference:
Mark my Answer Correct once you complete your work my by script.
Thanks
Yash.K.Agrawal