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

Question

Question

Pending tasks in IE 11 do not always move focus to the form when loaded.

asked on March 27, 2015

Using Forms 9.2. When I load a pending task that is read-only in IE 11, the form loads correctly, but focus is not always given to the form window. I need to click inside the loaded form once or twice for focus to return. After that, I can then scroll up and down, etc. This has been confusing to our end users as it appears the form has locked up or become unresponsive.

I'm unsure what causes this behavior, but things I've determined / eliminated:

  • Only happens in IE 11, not Firefox or Chrome.
  • Does not happen when the form is editable, only when the form is read-only.
  • I've ensured the form is fully loaded (waited up to 30 seconds) before attempting to scroll, etc. As stated, the form is loaded, the problem is that focus is not present.
  • Field types and/or form lengths do not seem to matter, the issue happens on both short and long forms, and forms with or without upload fields, etc.

 

So all that said, anyone else experienced this issue?  Anyone know what causes it?  Is there a jQuery code snippet I can use to force focus?

 

Thanks!

0 0

Answer

SELECTED ANSWER
replied on April 2, 2015

Hi All,

 

I figured out at snippet to provide focus to the pending task. This script scrolls the approval pane div to the top, and then gives the iframe window focus that holds the form. You place it at the bottom of the document ready function.

  var approvalPaneBody = window.parent.document.getElementByID('ApprovalPaneBody');
  if (approvalPaneBody != null)
  {
    approvalPaneBody.scrollTop = 0;
    window.focus();
  }

 

As stated before, this issue is only happening in IE, and may be a result of manipulating the DOM inside the iframe.

0 0

Replies

replied on March 31, 2015

Hi Joshua,

 

Do you notice this issue on the Inbox page or from the email notification link?

0 0
replied on March 31, 2015

Hi Lena,

 

This issue happens on the Inbox page.

0 0
replied on March 31, 2015 Show version history

Hi Joshua,

I tested with IE 11.0.9600.16672 and Forms 9.2.0.908/9.2.1.1069, but I cannot reproduce the issue you described.

When I opened the read-only user task from pending tasks on inbox, I could scroll on the form immediately.

Is there any customized CSS or JavaScript code on your form?

0 0
replied on April 1, 2015

There is custom JavaScript on the form, but nothing that is taking focus. I will add a focus event to the first control to see if that remedies the issue.

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

Sign in to reply to this post.