Skip to main content

This content has been archived and is no longer being updated. Links may not function; however, this content may be relevant to outdated versions of the product.

Support Article

Checkbox displays as a Slider in Internet Explorer browser

SA-104300

Summary



In the Internet Explorer 11.1304.17134.0 browser, the checkbox displays as a Slider. This works correctly in the Chrome and in the Internet Explorer 11.0.9600.19035CO browsers.


Error Messages



Not Applicable


Steps to Reproduce




In the Internet Explorer browser, use a Checkbox control.


Root Cause



A third-party product issue.

In the current Internet Explorer browser, 'Tablet PC' displays in a User agent string when the browser runs on Hybrid laptops (that is, laptop with touch-enabled display).
Since Pega application displays a Slide checkbox for a Tablet based device (which is based on the browser User agent string), the latest Internet Explorer update returns Tablet in the browser's User agent.


Resolution



Perform the following local-change:

In the Internet Explorer 11.1304.17134.0 browser, the User agent is always sent with a Tablet for touch-enabled computers and tablets. Hence, the user cannot determine if the system is a tablet or a computer.

Currently, the Internet Explorer browser does not provide a method to distinguish between Touchable Windows computer and Windows tablet. Hence, the user cannot modify the platform specifically for Hybrid laptops.

As a local-change, use the below script in the UserWorkForm to display a checkbox:

<script>
  pega.u.d.attachOnload(function(){
    if(navigator.userAgent.toLowerCase().indexOf("windows")!=-1 && !navigator.userAgent.match(/Windows Phone/i)){
      document.documentElement.classList.remove("tablet");
    }
  })
</script>

Published April 17, 2020 - Updated December 2, 2021

Was this useful?

0% found this useful

Have a question? Get answers now.

Visit the Collaboration Center to ask questions, engage in discussions, share ideas, and help others.

Did you find this content helpful?

Want to help us improve this content?

We'd prefer it if you saw us at our best.

Pega Community has detected you are using a browser which may prevent you from experiencing the site as intended. To improve your experience, please update your browser.

Close Deprecation Notice
Contact us