Skip to content

Releases: surinderlohat/react-form-validation

Release 1.4

21 Jan 12:27
0c98fb6
Compare
Choose a tag to compare

Add support for setting up custom rules on the fly .
using form.getField('key').setRules(new rules here)

add a new rule same to match field value with other field value
i.e can be used in confirm password case

const field: IFieldObject = {
  password: {
    label: 'Password',
    value: '123',
    rules: {
      min: 5,
      max: 10,
    },
  },
  confirmPassword: {
    label: 'Confirm Password',
    value: '123',
    rules: {
      same: 'password',
      min: 5,
      max: 10,
    },
  },
};

Release 1.1

21 Jan 09:42
91ed99c
Compare
Choose a tag to compare

Initial Release

  • Easy validations solution for react js.
  • Regex validations.
  • Custom validations.
  • Email validations.
  • Many useful form helping methods i.e hasError, hasChanges, isTouched, getValues, getErrors.
  • Easy to configure.
  • Support complex user cases.
  • Nested form fields validations.
  • Dynamic add/remove fields.
  • Open source Free to use.