jonsamwell/angular-auto-validate

Validate subform only

Closed this issue · 1 comments

Is there any way to validate a single element or all elements in a subform? I would like to show the errors using bootstrap styling when the subform is submitted.

Hey sorry for the late reply.

If you want a form to not be validated at all you can put the directive disableDynamicValidation on it.

...

If you want a element in a form not to be validated you can but the attribute 'formnovalidate ' on that element.

If you want the element to be validated but not display the success UI state you can put the directive 'disable-valid-styling="true"' on it.

If you want the element to be validated but not display the validation error UI state you can put the directive 'disable-invalid-styling' on it.

I hope this helps.