We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0e05c51 commit 4abe56cCopy full SHA for 4abe56c
Client Scripts/Validate Short Description/validateSpecialChar.js
@@ -0,0 +1,12 @@
1
+// Client Script to Validate Special Charecters
2
+function onSubmit() {
3
+ var shortDescription = g_form.getValue('short_description');
4
+ var specialCharsRegex = /[^a-zA-Z0-9\s]/g;
5
+var specialChars = description.match(specialCharsRegex);
6
+ if (specialChars) {
7
+ alert('Description contains invalid characters: ' + specialChars.join(', '));
8
+ return false;
9
+ } else {
10
+ return true;
11
+ }
12
+
0 commit comments