Kaizen
Browse modulesFormsforms/serverInterfaces

Interface: FormEvalContext

Defined in: shared/forms/condition-evaluator.ts:20

Evaluation context threaded through every leaf condition. Mirrors the shape conditions reference via FieldPath — e.g. a FIELD_COMPARISON with field: "form.data.country" reads ctx.form.data.country.

user is optional because anonymous submissions are valid. When user scopes appear in a transition's conditions and user is omitted, the field resolves to undefined and the condition fails — same behavior as a missing field path.

Properties

extensions?

optional extensions?: FormDataRecord;

Defined in: shared/forms/condition-evaluator.ts:29

Free-form extension bag for consumer-supplied scopes.


form

form: {
  data: FormDataRecord;
  visitedStepKeys: string[];
};

Defined in: shared/forms/condition-evaluator.ts:21

data

data: FormDataRecord;

visitedStepKeys

visitedStepKeys: string[];

user?

optional user?: {
  email?: string;
  id: string;
  organizationId?: string;
  roles?: string[];
};

Defined in: shared/forms/condition-evaluator.ts:22

email?

optional email?: string;

id

id: string;

organizationId?

optional organizationId?: string;

roles?

optional roles?: string[];

On this page