File tree Expand file tree Collapse file tree 1 file changed +34
-0
lines changed
Client-Side Components/Client Scripts/Validate Short Description Expand file tree Collapse file tree 1 file changed +34
-0
lines changed Original file line number Diff line number Diff line change 1+ Client Script – Validate Short Description
2+ Overview
3+
4+ This client script validates the Short Description field before a record is submitted. It ensures that the field:
5+
6+ Does not exceed 100 characters.
7+
8+ Does not contain any special characters (only letters, numbers, and spaces are allowed).
9+
10+ This helps maintain data quality, consistency, and readability in incident records or any other relevant table.
11+
12+ How It Works
13+
14+ On form submission, the script checks the short_description field.
15+
16+ If the description is too long or contains invalid characters, the submission is blocked.
17+
18+ An error message is displayed, and the problematic field can be optionally highlighted.
19+
20+ Configuration
21+
22+ Navigate to System Definition → Client Scripts.
23+
24+ Create a new client script.
25+
26+ Set the following properties:
27+
28+ Table: Incident (or the target table)
29+
30+ Type: onSubmit
31+
32+ Active: Checked
33+
34+ Paste the following script into the Script field.
You can’t perform that action at this time.
0 commit comments