You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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!
The text was updated successfully, but these errors were encountered:
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.
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!The text was updated successfully, but these errors were encountered: