angular-auto-validate
angular-auto-validate copied to clipboard
Can't validate on multiple tabs
Is there any way to validate form fields on non active tabs
Yeah I think if you can get the form element you can validate it.
validationManager.validateForm(formElement)
You would have to do something like the ngSubmit decorator
https://github.com/jonsamwell/angular-auto-validate/blob/master/src/config/ngSubmitDecorator.js#L25
Can you please share any link to working example using above function
Also, do i need different forms for different tabs? Right now I am using single form, and ng-show for the div's (inside the same form) which act as tab, like below
<form ng-submit="submit()">
<div ng-show="current_tab=='tab_1'">.....</div>
<div ng-show="current_tab=='tab_2'">.....</div>
...
</form>