Método para verificar se tem anexo na lista SharePoint.
[js]
function VerificaSeTemAnexo(){
var existeArquivo = false;
$(‘#idAttachmentsTable’).find(‘tbody’).find(‘tr’).each(function () {
existeArquivo = true;
});
return existeArquivo;
}
[/js]
Inclua esse método no PreSave() do seu .js para bloquear caso não tenha sido inserido um anexo.
Até a Próxima!