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