noinfopath-validation

noinfopath validation module

Usage no npm install needed!

<script type="module">
  import noinfopathValidation from 'https://cdn.skypack.dev/noinfopath-validation';
</script>

README

Build Status coverage

noinfopath-validation

validate(el, field)

Params:

  • object el - Element.
  • object field - Element field.

resetErrors(el, field)

Params:

  • object el - Element.
  • object field - Element field.

blur(el, field)

Params:

  • object el - Element.
  • object field - Element field.

noinfopath.validation

Combines the functionality of validation from bootstrap and angular.

noErrors

Will alert the user if errors ocurred in each field.

noSubmit

When user clicks submit, checks to make sure the data is appropriate and returns an error if not.

noReset

When user clicks reset, form is reset to null state.