Record producer restrictions in attachment
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-19-2022 09:17 AM
Hi Everyone
@Ankur
In record producer if we submit a incident in record producer than we need to restrict type of attachment for example if we attach pdf docs jpeg text are acceptable else return error message please select correct type of attachment.I want restriction for docx ,txt, jpeg, txt.
So I don't want to create new attachment variable or don't want to set the system properties.
I want client script for this use case please help me
Regards
Deepshikha
- Labels:
-
Team Development
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-19-2022 09:29 AM
You can find your answer in this article - Check attachment file type-client script
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-19-2022 07:59 PM
Thank you..this is for only CSV file i want to restrict for txt docx jpeg txt
Regards
Deepshikha
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-20-2022 09:48 PM
if ((value.indexOf('.csv')>-1)){ //Replace the .csv with your format
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-20-2022 10:05 PM
As per link shared by Sai you can follow that.
I had shared solution for this 3 years ago. Please enhance it from your side.
Regards
Ankur
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader