How to dynamically set a required rule to the Form.Item validation
问题 I have a list of parameters that may be checked or not. Its correspondent fields are enabled/disabled in dependence of checkbox state. So I want to enable and validate field if parameter is checked, and disable field and turn off validation rule while checkbox is unchecked. But I can't switch required rule to false while toggling checkbox. As you see the registrations parameter is unchecked but the field still have a validation.. Here is how I've done it: <Row key={index} gutter={8}> <Col