Show or Hide Field

Show or Hide Field

Shows or hides a field.

Function

Desktop

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

Mobile

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

Parameters

Parameter Type Required Description
fieldCode String Yes The field code or element ID 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.
  • If the field code and element ID overlap, the field identified by the field code takes precedence.
  • 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

  • In mobile view, the Border field cannot be shown or hidden.