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

Question

Question

JS Browser Detection

asked on October 19, 2021

This past weekend, we upgraded to Forms 10.4.5.324, and it appears that IE11 is no longer compatible. 

 

Post-upgrade, users will either see a blank white screen when launching a form, or they are able to submit the form, but some variables will not be populated (looks like there are issues will formulas in fields in IE11 - we haven't yet had time to do extensive testing on this).

 

Is there any way that JavaScript can detect the browser version so we can display a message to our users, asking that they not use IE11? We have sent an All User e-mail, but we all know that will be ignored, and we do have public forms in use as well.

 

Your help is appreciated,

Thank you!

0 0

Answer

SELECTED ANSWER
replied on October 19, 2021 Show version history

Hi Jennifer,

The simplest way to detect IE11 in js I find is (https://stackoverflow.com/a/21712356 ):

if(window.document.documentMode)
{
    alert("IE11 is not fully supported!");
}

 

Forms has officially dropped support for IE in Laserfiche 11, you can also upgrade to Forms 11 or later version, we have better reminder for IE 11 users there.

3 0
replied on October 20, 2021

Thank you so much!

 

We were trying to make it work with window.navigator.userAgent, but this is a more elegant solution. 

Marking as Answered.

1 0

Replies

replied on October 31, 2021

In case it helps others who encounter this issue, here's what we did.

 

1) we created a new process named "Incompatible Browser" - this process includes one form with an HTML box and no buttons. In the HTML box, we include our message about IE no longer being supported, etc.

 

2) we include the following JS in all of our other forms:

/*Added code to detect if user is opening from IE.  If so, redirect to Incompatible Browser form*/
var isIE = document.documentMode;

if (isIE) {
  window.location.replace("https://servername/incompatible_browser");
};
 

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

Sign in to reply to this post.