Skip to content

Get Field

To retrieve the current value of column in a row

Parameter

Parameterstypedescription
columnIdStringUnique Id of the column

Syntax

kf.context.getField(columnId).then((res) => {...})

or

let value = await kf.context.getField(columnId);

Returns

Returns the value of the field, and the data type of the value varies based on the field type.

Example

To retrieve the names of the previous companies an employee has worked for from the work experience table, specify the corresponding column ID, table_col1, and retrieve the values.

let value = await kf.context.getField(table_col1);

In this example, the returned data type will be text.