Get field state
Retrieve the current UI state of the form's fields
Retrieves the current state of the form's fields, such as their visibility, editability, and required status.
Custom components only
Available only on the Form instance returned by initForm(), not on the base Form (kf.context) in the Low-code / No-code SDKs.
Syntax
const form = await kf.app.getDataform("EmpMaster").initForm("emp_123");
let fieldState = await form.getFieldState();Returns
Returns an object describing the current state of the form's fields.

