FormActions
The actions creators for form module.
Actions
Your application can dispatch below actions.
blur: (field: string)
mark field as touchedchange: (field: string, value: any)
update the field valuechangeMany: (values: object)
update multiple values, if a field is not defined invalues
it won't be set to undefinedreplace: (values: object)
replace all values with the provided valuestouchAll
mark all fields as touchedsubmit
validate data and trigger setSubmitFailed/setSubmitSucceededreset
reset the module, clear values, errors and touched statusresetTouched
reset touched status
Your application should not dispatch below actions, they are used only internally.
setErrors: (errors: object)
set validation errors (result fromvalidate
function)setSubmitSucceeded
dispatched if submit was successfulsetSubmitFailed
dispatched if submit was not successful (there are validation errors)validate
trigger validation