You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am using redux form basic working of this example, i want to create form where we can add multiple fields multiple times. i'm able to do so, but i'm facing issue where i want to add condition on radio button, where fields will be displayed based on condition, but i'm unable to do so, can anyone please help me out? i want to display conditional field based on selectedCountry variable with radio button.
export default reduxForm({
form: "fieldArrays", // a unique identifier for this form
initialValues: {
companys: [""],
},
validate,
})(FieldArraysForm);
The text was updated successfully, but these errors were encountered:
I am using redux form basic working of this example, i want to create form where we can add multiple fields multiple times. i'm able to do so, but i'm facing issue where i want to add condition on radio button, where fields will be displayed based on condition, but i'm unable to do so, can anyone please help me out? i want to display conditional field based on selectedCountry variable with radio button.
const renderField = ({ input, label, type, meta: { touched, error } }) => (
<TextField
{...input}
className="mt-16"
label={label}
type={type}
variant="outlined"
fullWidth
/>
{touched && error && <span style={{ color: "red" }}>{error}}
);
const radioButtonCountry = ({ input, meta: { touched, error }, ...rest }) => (
<FormControl style={{ display: "flex" }}>
<RadioGroup
style={{ flexDirection: "initial" }}
{...input}
{...rest}
value={input.value}
onChange={(event, value) => input.onChange(value)}
>
<FormControlLabel
labelPlacement="start"
value="Indian"
control={}
label="Indian"
/>
let selectedCountry;
const renderMembers = ({
data,
fields,
meta: { touched, error, submitFailed },
}) => (
const FieldArraysForm = (props) => {
const { handleSubmit, pristine, reset, submitting } = props;
return (
<div style={{ fontSize: "12pt" }}>Company Details
);
};
export default reduxForm({
form: "fieldArrays", // a unique identifier for this form
initialValues: {
companys: [""],
},
validate,
})(FieldArraysForm);
The text was updated successfully, but these errors were encountered: