Skip to content

Commit 8c1a363

Browse files
authored
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.
1 parent 07a4fd6 commit 8c1a363

File tree

2 files changed

+10
-9
lines changed
  • Client-Side Components/Catalog Client Script/Strong Username Validation Script
  • Specialized Areas/Regular Expressions/Username validation

2 files changed

+10
-9
lines changed

Client-Side Components/Catalog Client Script/Strong Username Validation Script/README.md

Lines changed: 0 additions & 9 deletions
This file was deleted.
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
## Strong Username Validation Script
2+
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

Comments
 (0)