How to use doesntContain validation?


#1

Hi, I have simple form with email and password. And I want to add validation rule to email, so email won’t contain password. As I understand, I should use ‘doesntContain’ from here
https://semantic-ui.com/behaviors/form.html#validation-rules
but I can’t figure out how to use it in real example, syntax is not clear in the doc


#2

maybe for someone it would be helpful

emailAddress: {
identifier: ‘email-address’,
rules: [{
type: ‘doesntContain[someString]’,
prompt: ‘Error text’
}]
},