Skip to content

Commit 0479b6e

Browse files
Update README.md
1 parent 2a74c22 commit 0479b6e

File tree

1 file changed

+9
-0
lines changed
  • Client-Side Components/Client Scripts/Date Range Validation (Within 30 Days)

1 file changed

+9
-0
lines changed
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,10 @@
11
Date Range Validation (Within 30 Days) in Client Side
2+
3+
This ServiceNow client script provides real-time date validation for form fields, ensuring users can only select dates within a specific 30-day window from today's date. The script runs automatically when a user changes a date field value, providing immediate feedback and preventing invalid date submissions.
4+
5+
The script validates that any date entered in a form field meets these criteria:
6+
Minimum Date: Today's date (no past dates allowed)
7+
Maximum Date: 30 days from today's date
8+
Real-time Validation: Instant feedback as users type or select dates
9+
User-friendly Errors: Clear error messages explaining the valid date range
10+
Automatic Field Clearing: Invalid dates are automatically cleared to prevent submission

0 commit comments

Comments
 (0)