I have a process that currently updates our repository with the form as well as an attachment. We do not need to keep the attachment any more. How do I remove it?
Question
Question
Replies
Hi Sally,
Delete the upload field from form designer.
Regards
Thank you, but we still need to see the uploaded document we just don't need to store it in the repository.
Hi Sally,
In that case, you should delete de attachment when you store it in the repository
Alternatively, you can store all the uploads somewhere in the repository and have a Workflow kickoff whenever a new entry is created and delete that starting entry (the upload file in this case)
Thank you for your suggestions. I think one of these will work for us.
I mimic the CSS of the existing upload files table and have a hidden column that is a checkbox for 'delete attachment'. I have the same "X" in the last row, and if that is clicked, my delete checkbox gets checked (hidden) and the CSS of the attachment changes to a strikethrough. If the user clicks the "X" again the strikethrough is removed and checkbox cleared.
upon submit, a workflow sees which entries have the check variable and delete them from the repository.
Side note: I also use weblink for users to view the attachments so, in the table I have the URL to weblink (made in workflow) and the entryID. Having the entryID makes it easy for workflow to delete the entry.
Hope this gives you some ideas!