#4543·redux-form

Add a new resetFields action

Author: tnrichCreated Sep 25, 2019Updated Oct 8, 2024
Labelsc:action-creatorsfeature

This issue comes from: https://github.com/erikras/redux-form/pull/4498#issuecomment-520665132

In the docs there is a reset function:

reset(form:String)
Resets the values in the form back to the values passed in with the most recent initialize action.

resetSection(form:String, ...sections:String)

however this reset function can't take a list of fields like clearFields can:

clearFields(form:String, keepTouched: boolean, persistentSubmitErrors: boolean, ...fields:String)

we should add a new function resetFields:

resetFields(form:String, ...fields:String)

@renatoagds