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 Client Script ensures that a field does not contain any whitespace characters. It validates user input in real-time and provides immediate feedback by displaying an inline error message directly below the field. Invalid input is cleared automatically to enforce proper data entry.
5
+
6
+
Features
7
+
8
+
Prevents any spaces in the field value.
9
+
10
+
Displays field-level error messages below the input field.
11
+
12
+
Automatically clears invalid input for user correction.
13
+
14
+
Simple, lightweight, and does not use regex or getLabelOf.
15
+
16
+
Works dynamically for any field where the Client Script is applied.
17
+
18
+
Usage Instructions
19
+
1. Create the Client Script
20
+
21
+
Navigate to System Definition → Client Scripts.
22
+
23
+
Click New to create a new Client Script.
24
+
25
+
2. Configure the Script
26
+
27
+
Name: Whitespace Validation
28
+
29
+
Table: Select the target table (e.g., sys_user)
30
+
31
+
Type: onChange
32
+
33
+
Field: Select the field to validate (e.g., username, phone)
0 commit comments