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 abd74aa commit 71f93dbCopy full SHA for 71f93db
Client Scripts/Validate Short Description/ShortDescriptionLength.js
@@ -0,0 +1,9 @@
1
+
2
+function onSubmit() {
3
+ var shortDescription = g_form.getValue('short_description');
4
+ if (shortDescription.length > 100) {
5
+ alert('Short Description must be not be more than 100 characters long.');
6
+ return false; // Prevent form submission
7
+ }
8
+ return true; // Allow form submission
9
+}
Client Scripts/Validate Short Description/readme
@@ -0,0 +1,3 @@
+This Client Script validates the "Short Description" field before the form is submitted.
+ If the description is more than 100 characters, it displays an alert and prevents submission.
+This helps maintain data quality by ensuring adequate information is provided.
0 commit comments