davidkpiano / react-redux-form

Create forms easily in React with Redux.
https://davidkpiano.github.io/react-redux-form
MIT License
2.07k stars 251 forks source link

question: Form-level vals validator trigger error message #1220

Open dsreliete opened 4 years ago

dsreliete commented 4 years ago

The Problem

I'd like to show an error when comparing 2 diff form-fields (for example, password and confirm #password)

Steps to Reproduce

set up a form with 2 fields filled with diff content using a form-level validator and Error component

Expected Behavior

I don't know what to expect. I read all documentation and there is not a mention of it. Maybe if the second content field is diff from the first trigger an error message.

Actual Behavior

If I fill the fields with diff content and submit the form. It does not trigger any action but also does not show up any message.

Reproducible Code Example

(please fork from this CodePen template)