---
sourceDocument: Xanadu API Reference
sourceDocumentLink: https://servicenow-prod.fluidtopics.net/r/xanadu/api-reference

 Release :

    - xanadu

ft:locale :

    - en-US

ft:publication_title :

    - Xanadu API Reference

ft:clusterId :

    - crapiref

bundleId :

    - crapiref

workflow :

    - Creator


---

# GlideUICompatibility - Scoped

# GlideUICompatibility - Scoped {#ariaid-title1}

* Release version: Xanadu
* 
* Updated August 1, 2024
* 
* ![](https://www.servicenow.com/docs/portal-asset/ico-clock) 1 minute to read

The GlideUICompatibility API provides the ability for scoped applications to define their own minimum browser versions. This is done by creating system properties for the scoped application.

You create the properties using the sys_properties list and assign a version number. When you
do this from the scoped application, the \<scope-name\> prefix is automatically added to the
property name. The scoped application UI compatibility properties are:  
* \<scope-name\>.ui.ie_minimum
* \<scope-name\>.ui.chrome_minimum
* \<scope-name\>.ui.firefox_minimum
* \<scope-name\>.ui.safari_major_version_minimum
{#c_GlideUICompatibilityScopedAPI__ul_ebx_y2q_wt}

You can then use the GlideUICompatibility class to determine if the current browser is supported.

## GlideUICompatibility - GlideUICompatibility(String scopeName) {#ariaid-title2}

Creates a GlideUICompatibility object.
{#r_GUIC-GlideUICompatibility_S__table_chn_hfq_wt__entry__3}

| Name | Type | Description |
|-|-|-|
| scopeName | String | Application's scope name. |
[Table 1. Parameters]

{#r_GUIC-GlideUICompatibility_S__table_chn_hfq_wt}

## GlideUICompatibility - getCompatibility() {#ariaid-title3}

Returns the terms "block" or "allow" based upon the browser version.
{#r_GUIC-getCompatibility__table_jm4_xfq_wt__entry__3}

| Name | Type | Description |
|-|-|-|
| None |   |   |
[Table 2. Parameters]

{#r_GUIC-getCompatibility__table_jm4_xfq_wt} {#r_GUIC-getCompatibility__table_km4_xfq_wt__entry__2}

| Type | Description |
|-|-|
| String | Either block or allow. |
[Table 3. Returns]

{#r_GUIC-getCompatibility__table_km4_xfq_wt}  

    UICompatibility = new GlideUICompatibility(gs.getCurrentScopeName());
    var blockOrAllow = UICompatibility.getCompatibility();
    gs.info(blockOrAllow);

Output:

    allow

## GlideUICompatibility - isBlocked() {#ariaid-title4}

Determines if the browser is not supported (blocked).
{#r_GUIC-isBlocked__table_myv_kgq_wt__entry__3}

| Name | Type | Description |
|-|-|-|
| None |   |   |
[Table 4. Parameters]

{#r_GUIC-isBlocked__table_myv_kgq_wt} {#r_GUIC-isBlocked__table_nyv_kgq_wt__entry__2}

| Type | Description |
|-|-|
| Boolean | Flag that indicates whether the browser is blocked. Possible values: * true: Browser is blocked. * false: Browser is valid and not blocked. |
[Table 5. Returns]

{#r_GUIC-isBlocked__table_nyv_kgq_wt}  

    UICompatibility = new GlideUICompatibility(gs.getCurrentScopeName());
    var blocked = UICompatibility.isBlocked();
    gs.info(blocked);

Output:

    false


