You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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