Get Form Layout
Gets the field layout info of a form in an App.
| Method | GET |
|---|---|
| URL | https://{subdomain}.kintone.com/k/v1/app/form/layout.json |
| URL(guest space) | https://{subdomain}.kintone.com/k/guest/{SpaceID}/v1/app/form/layout.json |
| Authentication | Password Authentication , API Token Authentication , Session Authentication |
| Content-Type | application/json (not needed if specifying the query with a query string) |
Contents
Pre-live settings
Apps may hold pre-live settings that have not yet been deployed to the live App.
Access the pre-live settings with the below URL.
| URL | https://{subdomain}.kintone.com/k/v1/preview/app/form/layout.json |
|---|---|
| URL(guest space) | https://{subdomain}.kintone.com/k/guest/{SpaceID}/v1/preview/app/form/layout.json |
Permissions
- Permission to view records or add records is needed when obtaining information of live Apps.
- App Management Permissions are needed when obtaining information of pre-live settings.
Request Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
| app | Integer or String | Yes | The App ID. |
Sample Request
JavaScript using kintone.api()
|
|
XMLHttpRequest
|
|
Response Parameters
| Parameter | Type | Description |
|---|---|---|
| layout | Array | A list of field layouts for each row. |
| layout[].type | String | The type of row
|
| layout[].code | String | The field code of the Table or Group field. This parameter will not be returned for other row types. |
| layout[].fields | Array | A list of fields in the row. |
| layout[].fields[].type | String | The type of field.
|
| layout[].fields[].code | String | The field code. |
| layout[].fields[].label | String | The text set in the Label field. Only returned for Label fields. |
| layout[].fields[].elementId | String | The element ID of the Space field. Only returned for Space fields. |
| layout[].fields[].size | Object | An object with data of the field's size for PC only. The field size for mobile devices cannot be retrieved. |
| layout[].fields[].size.width | String | The width of the field in pixels. |
| layout[].fields[].size.height | String | The height of the field in pixels, including the height of the field name. |
| layout[].fields[].size.innerHeight | String | The height of the field in pixels, excluding the height of the field name. |
| layout[].layout | Array | A list of field layouts for each row inside a Group field. |
| revision | String | The revision number of the App settings. |
Sample Response
|
|