Get Field Style
Get Field Style - kintone.app.record.getFieldStyle()
Retrieves the style of a field in the current record.
This API retrieves the field styles set by the following API.
Set Field Style
Function
kintone.app.record.getFieldStyle(fieldCode)
Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
| fieldCode | String | Yes | The field code. |
Returns
A Promise object.
When the Promise object is fulfilled, an object with the following properties can be retrieved.
| Property | Type | Description |
|---|---|---|
| content | Object | The field style settings applied to the field content. |
| content.backgroundColor | String | The background color of the field content. Returns DEFAULT if no style is set. |
| content.color | String | The text color of the field content. Returns DEFAULT if no style is set. |
| content.fontWeight | String | The font weight of the text in the field content. Returns DEFAULT if no style is set. |
| content.textDecoration | String | The text decoration of the field content, such as underline or strikethrough. Returns DEFAULT if no style is set. |
| content.borderColor | String | The border color of the field content. Returns DEFAULT if no style is set. |
| background | Object | The field background style settings. |
| background.backgroundColor | String | The background color of the field. Returns DEFAULT if no style is set. |
| label | Object | The field label style settings. |
| label.color | String | The text color of the label field. Returns DEFAULT if no style is set. |
| label.fontWeight | String | The font weight of the text in the label field. Returns DEFAULT if no style is set. |
| label.textDecoration | String | The text decoration of the label field, such as underline or strikethrough. Returns DEFAULT if no style is set. |
Available Pages
- Record Create
- Record Edit
Limitations
The following fields are not supported:
- Status
- Assignee
- Table
- Related records
- Field group
- Border
- Label
- Blank space