Skip to main content
These events fire on pages other than record list, detail, create, and edit pages — including graph views, the Kintone portal, space portals, and the record print view.
Register all event handlers using kintone.events.on(). See Event handling for usage details.

Graph display event

Triggered after the graph (report) page is displayed.
This event also fires when displaying graph types not supported on mobile (pivot table, table, and scheduled reports). The mobile.app.report.show event still fires in these cases.
This event cannot be used with apps embedded in a space.
Event type: app.report.showTriggered timing: After the graph page is displayed.Event object properties:
PropertyTypeDescription
typeStringThe event type. Returns app.report.show.
appIdNumberThe app ID.
Available actions: Return a Promise to wait for asynchronous operations before the page continues rendering.
kintone.events.on('app.report.show', function(event) {
  console.log('Graph page loaded for app:', event.appId);
  return event;
});

Portal display event

Triggered after the Kintone portal page is displayed.
This event fires after all widgets configured for the portal have finished rendering.
This event does not fire on guest user portals or on portals beyond the first portal page.
Event type: portal.showTriggered timing: After the portal page is displayed.Event object properties:
PropertyTypeDescription
typeStringThe event type. Returns portal.show.
Available actions: Return a Promise to wait for asynchronous operations.
kintone.events.on('portal.show', function(event) {
  // Add custom content to the portal
  var el = kintone.portal.getContentSpaceElement();
  if (el) {
    var msg = document.createElement('p');
    msg.textContent = 'Welcome to the portal!';
    el.appendChild(msg);
  }
  return event;
});

Space display event

Triggered after a space portal page is displayed.
This event fires after all widgets configured for the space portal have finished rendering.
This event only fires in spaces with Use a portal and multiple threads enabled. It does not fire on guest space portals.
Event type: space.portal.showTriggered timing: After the space portal page is displayed.Event object properties:
PropertyTypeDescription
typeStringThe event type. Returns space.portal.show.
spaceIdStringThe space ID.
Available actions: Return a Promise to wait for asynchronous operations.
kintone.events.on('space.portal.show', function(event) {
  console.log('Space portal loaded. Space ID:', event.spaceId);
  var el = kintone.space.portal.getContentSpaceElement();
  if (el) {
    var banner = document.createElement('div');
    banner.textContent = 'Welcome to this space!';
    el.prepend(banner);
  }
  return event;
});

Record print event

Event type: app.record.print.show
This event is only available on desktop. There is no mobile equivalent.
Triggered after the record print page is displayed. Triggered timing: After the record print page is displayed. Event object properties:
PropertyTypeDescription
typeStringThe event type. Returns app.record.print.show.
appIdNumberThe app ID.
recordIdNumberThe record ID.
recordObjectThe record data displayed on the print page.
Available actions: Return a Promise to wait for asynchronous operations before the print page renders.
kintone.events.on('app.record.print.show', function(event) {
  var record = event.record;
  console.log('Printing record ID:', event.recordId);

  // Add a custom watermark element to the print view
  var header = kintone.app.record.getHeaderMenuSpaceElement();
  if (header) {
    var watermark = document.createElement('p');
    watermark.textContent = 'CONFIDENTIAL';
    watermark.style.color = 'red';
    header.appendChild(watermark);
  }

  return event;
});

Build docs developers (and LLMs) love