Redux-Form set component state based on initialValues
Redux-Form set component state based on initialValues I have a react form that is dynamically generated via data from DB. The issue I'm currently trying to solve is how to enable/disable "child" inputs based on the "parent" input (typically a checkbox). My plan was during rendering of the form I would create component state settings (parentClicked1, parentClicked2, etc) based on initialValues that are populated by redux-form. The name of the component state setting would correspond to the parent input name and would be passed to an onClick method. for example: const renderSettings = ({ fields, meta: { touched, error, submitFailed } }) => ( <div> {fields.map((setting, index) => ( <Field name={`${setting}.value`} type={fields.get(index).inputType} component={renderField} label={fields.get(index).labelText} format={(value, name) => { return setBoolValue(value) }} onClick...