About

Introduction to the Form's live-state methods

These methods expose the Form's live state — its current validation errors, its configuration/schema, and the current UI state of its fields.

  1. Get validation errors
  2. Get form configuration
  3. Get field state

Custom components only

These three methods are available only in custom components, on the Form instance returned by initForm() (Board / Dataform / Process). They are not exposed on the base Form (kf.context) in the Low-code / No-code (Run Script) SDKs.

const form = await kf.app.getDataform("EmpMaster").initForm("emp_123");
const errors = await form.getValidationErrors();