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

Dynamic fields - How to trigger validation on a field from another field #2264

Closed
igbominadeveloper opened this issue Jan 2, 2025 · 1 comment

Comments

@igbominadeveloper
Copy link

I have an array of dates that has startDate and endDate in each row. And now, for each row, if the end date is filled before the start date, I want to trigger the validation on the start date so it can error out so the user knows that they need to fill in the start date to complete the range. the end date is not required

Help Others Reproduce
I have a test environment here - https://stackblitz.com/edit/react-zclpwmvc?file=DatePickerDemo.tsx

@igbominadeveloper igbominadeveloper changed the title How to trigger validation on a field from another field Dynamic fields - How to trigger validation on a field from another field Jan 2, 2025
@jquense
Copy link
Owner

jquense commented Jan 6, 2025

This is a question for the form library since it's the thing that triggers validation

@jquense jquense closed this as completed Jan 6, 2025
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

2 participants