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 ebce079 commit 83820f2Copy full SHA for 83820f2
Client-Side Components/Client Scripts/Abort action when description is empty/Code.js
@@ -1,9 +1,9 @@
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');
+ var status = g_form.getValue('state');
5
6
- if ((!description) || (status == 'completed')) {
+ if ((!description) && (state == 'completed')) {
7
g_form.addErrorMessage('Please provide Description Value, Description Cannot be empty');
8
9
return false;
0 commit comments