Skip to content

Commit a47a5ec

Browse files
Create Readme.md
1 parent 69c730d commit a47a5ec

File tree

1 file changed

+34
-0
lines changed
  • Client-Side Components/Client Scripts/Validate Short Description

1 file changed

+34
-0
lines changed
Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
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.

0 commit comments

Comments
 (0)