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

Form Validation #166

Open
razbakov opened this issue Feb 9, 2022 · 0 comments · May be fixed by #171
Open

Form Validation #166

razbakov opened this issue Feb 9, 2022 · 0 comments · May be fixed by #171
Assignees
Labels
chore A tedious but necessary task

Comments

@razbakov
Copy link
Contributor

razbakov commented Feb 9, 2022

As a Developer I want to specify validation rules and error messages per each form field so that user can see errors on saving invalid data.

Form field configuration example:

{
  name: 'title',
  validation: (val) => !!val
  validationError: t('event.title.required')
}

Validation should be triggered in validate() method of TForm component.

Blocks #99

Related issues #28 #47 #50 #51 #54

@razbakov razbakov added chore A tedious but necessary task and removed chore A tedious but necessary task labels Feb 9, 2022
@razbakov razbakov linked a pull request Mar 4, 2022 that will close this issue
@razbakov razbakov linked a pull request Mar 4, 2022 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
chore A tedious but necessary task
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants