Add a document to the form