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

Returns

TYPE VALUE & DESCRIPTION
Integer 1: Classic UI Design (Desktop version) or Mobile version
2: New UI Design

Sample Request

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

// returns
// 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.