alt
alt

Reputation: 2606

How do I have conditional validation for conditional inputs with react-final-form?

I've set up some conditional fields as per https://github.com/final-form/react-final-form#conditional-fields

The form is complex and uses components that are used elsewhere. These components have validators built in so they are consistent across the application. If the fields get hidden but they have a validator, the form cannot be submitted.

How can I get around this?

Upvotes: 0

Views: 4024

Answers (1)

alt
alt

Reputation: 2606

Fair comments folks, it must've been late in the evening when I posted this.

MCVE example https://codesandbox.io/s/ymw0nvjy2j turns out to work fine, so must be something weird I've done in my app

Upvotes: 1

Related Questions