Skip to content

Commit ebce079

Browse files
authored
Create Code.js
1 parent b802651 commit ebce079

File tree

1 file changed

+12
-0
lines changed
  • Client-Side Components/Client Scripts/Abort action when description is empty

1 file changed

+12
-0
lines changed
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
function onSubmit() {
2+
//Type appropriate comment here, and begin script below
3+
var description = g_form.getValue('description');
4+
var status = g_form.getValue('status');
5+
6+
if ((!description) || (status == 'completed')) {
7+
g_form.addErrorMessage('Please provide Description Value, Description Cannot be empty');
8+
9+
return false;
10+
}
11+
12+
}

0 commit comments

Comments
 (0)