Appearance
useField()
Accepts field instance
Returns mapped field states and handlers:
value
- mapped FormModel$values
dirty
- mapped FormModel$dirty
errors
- mapped FormModel$errors
onBlur
- mapped blured eventonFocus
- mapped focused eventtouched
- mapped FormModel$touched
focused
- mapped FormModel$focused
(true if $focused has same field path as specific field)onChange
- mapped FormModelchanged
event which accepts value onlyexternalErrors
- mapped FormModel$externalErrors
shouldShowValidation
- boolean value based on touched/dirty/submitted states and ValidationVisibilityCondition setting