Skip to content

Commit bf9b058

Browse files
authored
Create README.md
1 parent e62c7b1 commit bf9b058

File tree

1 file changed

+8
-0
lines changed
  • Client-Side Components/Client Scripts/Client Validation of Attachments by File Type and Count

1 file changed

+8
-0
lines changed
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
This ServiceNow client script is designed to validate file attachments on a form before submission. It's most likely used as a "Client Script" or "Client Script in a Catalog Item" that runs in the browser when a user tries to submit a form.
2+
3+
This client script runs when a form is submitted in ServiceNow. It checks if the user has:
4+
5+
Attached at least one file (shows an error if none).
6+
Attached no more than three files (shows an error if more).
7+
Only uploaded files of type PDF or PNG (shows an error for other types).
8+
If any of these checks fail, the form submission is blocked and an appropriate error message is displayed.

0 commit comments

Comments
 (0)