Added in form validation in the view for Corrective Action Items

This commit is contained in:
ouellette 2023-05-25 16:41:06 -07:00
parent 9746653081
commit 9ecf6d035f

View File

@ -4276,6 +4276,17 @@
return false; return false;
} }
} }
if (data.CorrectiveAction.length > 1000) {
$('#cover-spin').hide(0);
alert("Corrective Action field must be less than 1000 characters! Data not saved!");
return false;
}
if (data.Result.length > 1000) {
$('#cover-spin').hide(0);
alert("Result field must be less than 1000 characters! Data not saved!");
return false;
}
return true; return true;
@ -4326,7 +4337,6 @@
ResponsibilityOwnerID: $("#D5D6ResponsibilityOwnerIds").data("kendoDropDownList").value(), ResponsibilityOwnerID: $("#D5D6ResponsibilityOwnerIds").data("kendoDropDownList").value(),
ImprovementID: d5d6ImprovementIDs + ',' ImprovementID: d5d6ImprovementIDs + ','
} }
alert(objectData.Result);
} }
return objectData; return objectData;