Get Record Field Element

Get Record Field Element - kintone.app.record.getFieldElement()

Retrieves the field element of a field in the record, by specifying the field code.

Function

Desktop

kintone.app.record.getFieldElement(fieldCode)

Mobile

kintone.mobile.app.record.getFieldElement(fieldCode)

Parameters

PARAMETER VALUE REQUIRED DESCRIPTION
fieldCode String Yes Specify the field code of the field you want to retrieve.

Response

  • A string of field elements, or null.
  • Null is returned for pages where it cannot be used.

Sample

1
2
// Retrieve the field element of field with the field code of "title"
kintone.app.record.getFieldElement('title');

Available Pages

  • Record Details
    (Cannot be called on the Record edit/create page, or the notification page)
  • Record Print

Notes

  • The retrieval of data and the DOM's style is supported
  • Changing the internal structure of the DOM may lead to features not functioning correctly after a Kintone update.
  • The following fields cannot be retrieved with kintone.app.record.getFieldElement(fieldCode), and null will be returned:
    • Status
    • Assignee
    • Fields within Tables
    • Fields within Related records
    • Other fields without view permissions
  • In addition to the above, the following fields also cannot be retrieved with kintone.mobile.app.record.getFieldElement(fieldCode), and null will be returned:
    • Tables
    • Related records
    • Field groups