Show or Hide a Field

Show or hide a field

Shows or hides a field.

Function

Desktop

kintone.app.record.setFieldShown(fieldCode, isShown)

Mobile

kintone.mobile.app.record.setFieldShown(fieldCode, isShown)

Parameters

PARAMETER VALUE REQUIRED DESCRIPTION
fieldCode String Yes The field code of the field to show or hide.
Specifying a Table field will hide the whole Table field.
Specifying a field within a Table field will hide the column of the Table field.
isShown Boolean Yes Set true to show the field.
Set false to hide the field.

Response

None

Sample Request

1
2
3
kintone.events.on('app.record.detail.show', function(event) {
  kintone.app.record.setFieldShown('Text', false);
});

Available Pages

  • Record Create
  • Record Edit
  • Record Details
  • Record Print (Desktop only)

Limitations

  • The following fields cannot be hidden:
    • Label
    • Border
    • Blank space