Get validation errors

Retrieve the form's current validation errors

Retrieves the current validation errors for the form, keyed by field.

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 errors = await form.getValidationErrors();

Returns

Returns an object containing the form's current validation errors.

On this page