RE: Need help stopping a user from saving when the same "Resource" has been entered in a grid more than once
Thank you @Marco.P. I created an "OnLoad" event using the LoadForm function but received the following error:

Any ideas how I can get rid of this error? Could it be because my Resource field has a lookup field type?
Below is my code for the OnLoad event. All I changed is the field name:
function LoadForm(executionContext) {
var formContext = executionContext.getFormContext(); // get formContext
var dataSheetStage = formContext.getAttribute('new_resource').getValue();
if (dataSheetStage !== null) {
origDataSheetStage = dataSheetStage;
}
}
Thanks!