Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to trigger partial validation inside a form #405

Open
vagusX opened this issue Dec 30, 2018 · 3 comments
Open

How to trigger partial validation inside a form #405

vagusX opened this issue Dec 30, 2018 · 3 comments

Comments

@vagusX
Copy link

vagusX commented Dec 30, 2018

Are you submitting a bug report or a feature request?

I am not sure, but I cannot found any docs about this. the formApi didn't expose validation related methods.

What is the current behavior?

My situation is one registeration form, there is a captcha is required, so when click get captcha code must trigger a phone number validation, but this validation is not cover whole form only for phone number. How could I get this?

What is the expected behavior?

Trigger a partial validation for values inside a form

Sandbox Link

Edit 🏁 React Final Form - Simple Example

What's your environment?

both lastest version

Other information

@khaphannm
Copy link

khaphannm commented Jan 8, 2019

Same problem that i want to deal with. I provide two ways for registration (phone and email) in one Form. I put those Fields in Tabs component. When the Tab Phone is selected, I just want to validate for phone 's fields, otherwise for Email Tab. Please suggest me

@burtek
Copy link

burtek commented Jan 24, 2019

@khapnm15dh110042 your validator could explicitely return undefined when the other tab is selected

@michaelgmiller1
Copy link

+1 this would be great to have

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants