We have a file upload form that loads as a User Task, i.e. it loads embedded in the a task/approval view, with User information at the top, and Action History/Task Summary on the side pane (not sure what the official term is for this).
Users will be potentially uploading dozens, even hundreds of files, which is causing a couple of problems that I'd appreciate some advice on how to handle:
- When attempting to delete a file, the modal "file-delete-confirm" dialog renders at the top of the page altogether, and not the top of the viewable portion of the page as intended. This appears to be a result of the page being embedded, as the file delete modal dialog will appear correctly at the top of the the window, however far the page is scrolled down.
- If a user wants to remove more than a handful of files from the selection, there is no particularly good option other than to a) delete one by one (see problem 1), or b) must know to simply refresh the page, or if a draft has been saved, to delete the draft altogether. I made a rudimentary attempt at a "Clear Selection" button that simply removed the offending elements from the page (i.e. tbody.innerHTML = "") , but it must have cleared too much, because the Form threw an error... Can anyone suggest a better way to approach this?
Thanks in advance for the help,
Jesse