Toggle Field Visibility

Toggle Field Visibility

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.
  • The following fields can't be hidden:
    • Label
    • Border
    • Blank space
  • If the field code does not exist, nothing occurs.
isShown Boolean Yes Set true to show the field.
Set false to hide the field.

Returns

Nothing

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