Get Design

Get Design - kintone.getUiVersion()

Retrieves the current Kintone UI Design version that the user is currently viewing.
By default, the user settings of the Kintone UI Design should be set to the New UI Design.
This API can be used on both Desktops and Mobile Devices, and be used on any page.

Function

kintone.getUiVersion()

Parameters

None

Response

Type Response and Description
Integer 1: Classic UI Design (Desktop version) or Mobile version
2: New UI Design

Sample

1
2
3
4
var uiVer = kintone.getUiVersion();
console.log(uiVer);

// For users using the New UI Design, the output is: 2

Limitations

This API cannot be used from apps attached to bodies of Spaces/Threads/Announcements.
When a Mobile Device accesses Kintone, kintone.getUiVersion() will return a 1 regardless of UI Design configuration.