Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
function onSubmit() {
//Type appropriate comment here, and begin script below
var description = g_form.getValue('description');
var status = g_form.getValue('status');

if ((!description) || (status == 'completed')) {
g_form.addErrorMessage('Please provide Description Value, Description Cannot be empty');

return false;
}

}
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
When an Incident record is being closed, the system should validate that the Description field is not empty.
If the Description field is blank, the record submission (update) should be aborted, and the user should be prompted to provide a description before closing the incident.
Loading