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

@ -4275,7 +4275,18 @@
alert('The following fields are required if the [Implemented Date] field is filled \n' + errorMessage ) ;
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;
@ -4326,7 +4337,6 @@
ResponsibilityOwnerID: $("#D5D6ResponsibilityOwnerIds").data("kendoDropDownList").value(),
ImprovementID: d5d6ImprovementIDs + ','
}
alert(objectData.Result);
}
return objectData;