Get Page Type

Get Page Type

Retrieves the type of the current page.

Function

kintone.user.getPageType()

Returns

A Promise object.
When the Promise object is fulfilled, an array of objects containing the following elements can be retrieved:

Property Type Value and Description
type string Kintone features
  • APP: App
  • PORTAL: Portal
  • SPACE: Space
  • PEOPLE: People
  • MESSAGE: Message
  • SEARCH: Search
  • NOTIFICATION: Notification
  • APP_MARKETPLACE: App Store
  • APP_SETTINGS: App Settings
page string Kintone features' information
  • APP
    • APP_INDEX: Record List (desktop)
    • APP_CREATE: Record Create (desktop)
    • APP_DETAIL: Record Details (desktop)
    • APP_EDIT: Record Edit (desktop)
    • APP_PRINT: Record Print (desktop)
    • APP_REPORT: Graph (desktop)
    • APP_INDEX_MOBILE: Record List (mobile)
    • APP_CREATE MOBILE: Record Create (mobile)
    • APP_DETAIL_MOBILE: Record Details (mobile)
    • APP_EDIT_MOBILE: Record Edit (mobile)
    • APP_REPORT_MOBILE: Graph (mobile)
  • PORTAL
    • PORTAL_TOP: Top (desktop)
    • PORTAL_TOP_MOBILE: Top (mobile)
  • SPACE
    • SPACE_ PORTAL: Space portal (desktop)
    • SPACE_THREAD: Thread (desktop)
    • SPACE_PORTAL_MOBILE: Space portal (mobile)
    • SPACE_THREAD_MOBILE: Thread (mobile)
  • PEOPLE
    • PEOPLE_TOP: Top (desktop)
    • PEOPLE_TOP_MOBILE: Top (mobile)
  • MESSAGE
    • MESSAGE_TOP: Top (desktop)
    • MESSAGE_TOP_MOBILE: Top (mobile)
  • SEARCH
    • SEARCH_TOP: Top (desktop)
    • SEARCH_TOP_MOBILE: Top (mobile)
  • NOTIFICATION
    • NOTIFICATION_TOP: Top (desktop)
  • APP_MARKETPLACE
    • APP_MARKETPLACE_TOP: Top (desktop)
    • APP_MARKETPLACE_CATEGORY: Apps by category (desktop)
    • APP_MARKETPLACE_SEARCH: Search results (desktop)
    • APP_MARKETPLACE_DETAIL: App details (desktop)
  • APP_SETTINGS
    • APP_SETTINGS_PLUGIN_SETTINGS: Plug-in settings (desktop)

Available Pages

notes

To check if the page is a mobile page or not, use the following API:

Check Mobile Page