Skip to content

Conversation

@nahanil
Copy link

@nahanil nahanil commented Mar 2, 2019

Could be useful if the validity of one form field is dependent on the state of another.

Some out-of-context nonsense example:

formData: {
  foo: 'foo',
  bar: 'bar',
},

formRules: {
  bar: {
    custom: function(input) {
      return input === 'bar' && this.foo !== 'bar';
    }
  }
}

…onent

Could be useful if the validity of one form field is dependent on the state of another.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

1 participant