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

Conditional Date Validation in Flutter #473

Open
dmarotta77 opened this issue Dec 20, 2024 · 0 comments
Open

Conditional Date Validation in Flutter #473

dmarotta77 opened this issue Dec 20, 2024 · 0 comments
Labels
question Further information is requested

Comments

@dmarotta77
Copy link

I need to specify start and end dates for an event with the following constraints:

  • Start date field is mandatory.
  • End date field is optional.
  • If the end date field is populated, it must be greater than or equal to the start date.

Currently, using Validators.compare, I'm getting an error notification even if the end date is not specified.

Should I implement a custom validator?

@dmarotta77 dmarotta77 added the question Further information is requested label Dec 20, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

1 participant