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
* Update and rename Script.js to Script.js
Moved to Regex folder and added comment to explain the Regex.
* Update and rename README.md to README.md
Updated the readme to be more descriptive: described the criteria the script evaluates, and added how to use the script.
This script validates a username entered in a ServiceNow catalog item form. It prevents form submission if the username does not meet the required format.
3
+
4
+
### Validation Criteria
5
+
The username must start with a letter (a–z or A–Z).
6
+
It must be at least 6 characters long.
7
+
It can only contain letters and numbers.
8
+
9
+
## Usage
10
+
Add the script as an onSubmit client script in the catalog item. If the username is invalid, an error message is shown and the form is not submitted.
0 commit comments