The below script has stoped working please help.
fd.field('Attachments').validators.push({
name: 'Attachments Validation',
error: "Please add attachment",
validate: function() {
if (fd.field('Attachments').value.length == 0) {
return false;
}
return true;
}
})
});
fd.spBeforeSave() {
var str = fd.field('EmployeeID').value;
var res = str.toUpperCase();
fd.field('EmployeeID').value = res;
});
fd.spSaved(function(result) {
//simply replace this URL with yours:
result.RedirectUrl =
"https://hepaco365.sharepoint.com/sites/CompanyServices/SitePages/Home.aspx";
});