2

I've got a list that is using custom forms for new items and edit. Customization moved screen elements around, but the Attachments part of the forms is pretty much stock.

If I edit an item, and click "Attach File," the UI goes to the normal screen and appears to work, even returning to the edit item screen with the new attachment listed under attachments.

However, when I save the item and reopen it, the attachment is no longer there.

I've found plenty of references to older versions of Sharepoint having this issue with custom edit forms, but it was supposed to be fixed in 2008, and it appears the 2013 default forms already have the "workaround" for this included.

Where can I begin troubleshooting why the attachments won't save?

FWIW, the list items that are imported via a C#/CSOM program have no problem having attachments attached to them with CSOM.

2
  • Maybe you missed some meaning things for the Attachments part. What form customization do you use? CSR? Commented May 4, 2016 at 10:02
  • @RustamIsmagilov The majority of the customization is done via XSL. Additionally, I modify some things with js that runs post-render. Is there anything specific I can verify that is needed for attachments to save?
    – SvdSinner
    Commented May 4, 2016 at 20:18

1 Answer 1

1

Problem solved. I had a JavaScript exception that was preventing validation errors from showing. Once I fixed that, the validation error showed, and when that was fixed, attachments worked as expected. (SharePoint is designed to not save anything if there is a validation error, and this includes attachments.)

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.