Skip to main content
A2InputFieldState<T> extends formstate’s FieldState<T> and adds non-blocking warnings, dynamic disablers, soft validation, and value-confirmation helpers. It is the field state every Form.* wrapper binds to.

Creating a field state

Pass an initial value to the constructor, then attach validators:

Inherited from formstate

A2InputFieldState keeps the full FieldState surface:

Added behavior

A2InputFieldState adds the following on top of FieldState: Warnings and disablers are evaluated during validate() and softValidate():

Selection field states

SelectableOptionsFieldState<T, G> (single) and SelectableOptionsArrayFieldState<T, G> (multiple) extend A2InputFieldState for option-based selection, such as Form.RadioGroup and Form.CheckboxGroup. Both hold an options list and validate the selected value against option-derived rules.
Call setOptions whenever the available options change. When the selected value matches a tracked option, validate() reports the rule’s errorCode as the error.
Last modified on June 12, 2026