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

Skipping fields without validators #9

Open
missmatsuko opened this issue Apr 4, 2019 · 0 comments
Open

Skipping fields without validators #9

missmatsuko opened this issue Apr 4, 2019 · 0 comments

Comments

@missmatsuko
Copy link

I have a form that is split into several steps. When the user clicks a button to progress to the next step, I would like to validate all the fields on the current tab.

I thought I might be able to pass a selector for the step's div which contains multiple fields, but it seems I have to pass in the actual form elements (e.g. input, select).

So I thought I'd go through the form's elements, but I get this error when it hits a FormElement that doesn't have a validator. For example, a fieldset which contains other inputs.

Uncaught TypeError: Cannot read property 'validators' of undefined

Is there a way to skip validation for for things that are passed into validate() that don't have validators? Or is there a smarter way to achieve what I'm trying to do? Thanks!

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

1 participant