Skip to content

Commit 83820f2

Browse files
authored
Update Code.js
1 parent ebce079 commit 83820f2

File tree

1 file changed

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

1 file changed

+2
-2
lines changed

Client-Side Components/Client Scripts/Abort action when description is empty/Code.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
function onSubmit() {
22
//Type appropriate comment here, and begin script below
33
var description = g_form.getValue('description');
4-
var status = g_form.getValue('status');
4+
var status = g_form.getValue('state');
55

6-
if ((!description) || (status == 'completed')) {
6+
if ((!description) && (state == 'completed')) {
77
g_form.addErrorMessage('Please provide Description Value, Description Cannot be empty');
88

99
return false;

0 commit comments

Comments
 (0)