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 e6e6419 commit b506db1Copy full SHA for b506db1
Client-Side Components/Catalog Client Script/Document validation/Client script.JS
@@ -0,0 +1,12 @@
1
+function onSubmit() {
2
+ var ga = new GlideAjax('DocumentValidationHelper');
3
+ ga.addParam('sysparm_name', 'validateAttachments');
4
+ ga.addParam('sysparm_item_id', g_form.getUniqueValue());
5
+ ga.getXMLAnswer(function(response) {
6
+ if (response !== 'valid') {
7
+ alert('Document validation failed: ' + response);
8
+ return false;
9
+ }
10
+ });
11
+ return true;
12
+}
0 commit comments