Record Print Event

List of Events for the Record Print Event

After Showing the Print Page (Desktop)app.record.print.show

An event triggered after the print page is displayed on the desktop.

Function

app.record.print.show

Triggered Timing

After the print page is displayed

Properties of the Event Object

PROPERTY TYPE DESCRIPTION
appId Number The App ID.
record Object A record object that holds data of the record of the print page.
recordId Number The Record ID.

Control based on Field's Value

Please refer to Show/Hide Fields.

Sample

kintone.events.on('app.record.print.show', function(event) {
  alert("Print Screen has been displayed.");
});

Possible Actions after Events are Triggered

Show/Hide Fieldskintone.app.record.setFieldShown

Changes fields to be hidden or shown. For the second parameter, "false" makes a field hidden, and "true" makes a field shown.

Function

kintone.app.record.setFieldShown("fieldcode","true/false")

Sample

Hiding a field with a field code of "singleline_text0" on the print page.

kintone.events.on('app.record.print.show', function(event){
  kintone.app.record.setFieldShown('singleline_text0', false);
});

The below fields cannot be hidden:

  • Label
  • Border
  • Blank space

Action Limitations

These actions are only available on the Desktop, and not on the smartphone.

Was this article helpful?
0 out of 0 found this helpful
Comments
Please sign in to leave a comment.