Tag Archives: Se Tem Anexo SharePoint

Verificar se Tem Anexo SharePoint 2013

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!

<span class="entry-utility-prep entry-utility-prep-cat-links">Posted in</span> JavaScript, JQuery, SharePoint | <span class="entry-utility-prep entry-utility-prep-tag-links">Tagged</span> , , , | Leave a comment