Show or Hide Delete Table Row Buttons
Show or Hide Delete Table Row Buttons - kintone.app.record.showDeleteTableRowButtons(fieldCode, state)
Shows or hides the Delete this row buttons of the specified Table field.
Function
Desktop
kintone.app.record.showDeleteTableRowButtons(fieldCode, state)
Mobile
kintone.mobile.app.record.showDeleteTableRowButtons(fieldCode, state)
Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
| fieldCode | String | Yes | The field code of the Table field to show or hide the Delete this row buttons for. |
| state | String | Yes | Specify one of the following values.
|
Returns
A Promise object.
When the Promise object is fulfilled, no value is returned.
Sample Code
The following code shows and hides the Delete this row buttons of a Table field with the field code Table.
|
|
Available Pages
Desktop and Mobile
- Record Create
- Record Edit
Notes
The display state of a Table field and the display state of its Delete this row buttons are managed separately.
The display state of the Delete this row buttons can be changed even if the Table field is hidden with the
Show or Hide Field
API.
However, the Delete this row buttons do not appear on the page while the Table field is hidden.
If you hide both the
Add row buttons
and the Delete this row buttons, the table column that contains the row controls is hidden on desktop.
On mobile, the area that contains the row controls is hidden.
The Delete this row button does not appear when the table has only one row.
This applies even if the display state is set to VISIBLE.