You are viewing limited content. For full access, please sign in.

Question

Question

"file-confirm-delete" modal dialog off screen in iframe

asked on February 6, 2017 Show version history

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:

  1. 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.
  2. 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

0 0

Replies

replied on February 9, 2017 Show version history

What version of Forms are you using? Since Forms 10.1 you can set file upload limit to restrict the number of files user can upload.

0 0
replied on April 10, 2017

Hello, 

I have the file upload limit restricted in Forms, however in the Windows "Open" dialog, i.e. the file selection dialog, multiple file upload is not restricted. So, even if we set the upload limit as 1, let's say, the user can still upload multiple, then will have to delete. In a different Form from what is listed above, we are encountering a new issue with the modal "Delete" dialog, which is now not clickable. I can Tab through the options to select "Delete", "Cancel" or to close the dialog, but I cannot click any of these options.

So first, is there a way to restrict the number of files selectable in the windows file select/Open dialog, which I believe is possible for that dialog. Then, would you have any additional ideas about how to deal with a modal dialog that due to being behind an iframe, seems to be quite unwieldy?

thank you,

Jesse

0 0
replied on May 12, 2017

Hi Jesse,

     For restrict the number of files uploaded, it is possible, we use to disable the upload button after user uploaded files reach the limit but later we change the behavior to allow user upload as much as they want the show an error and not allow them to submit, user need to delete the files they don't want. We may provide option to let customer choose which behavior they want.

     For the issue of the delete file dialog,  is it not clickable or do not appear in a position near the file? If it is not clickable, then please check whether you have any customize CSS to change the opacity of cf-formwarp, please not change the opacity as it will make the dialog pop out not work; if the issue is not appear in the correct position, this issue has been fixed with Forms 10.2.1.

 

 

0 0
replied on February 10, 2017

This is Forms 10.2. Unfortunately, the customer must be allowed to upload as many files as is necessary for their task, so it would be ideal if there was a way to circumvent the problem of positioning the iframe's modal dialog in the context of the parent window. As I search more on this , I am finding it is apparently a known issue in general, but I still have been unable to find a solution that works in this context.

0 0
You are not allowed to follow up in this post.

Sign in to reply to this post.