hideBeforeSubmit parameter is used to hide validation errors before setFormIsSubmitted() function is called. Later, validation errors can also be hidden by calling resetForm() function.
Validation Result:
valid
![validationresult](/react-validatable-form-demo/valid.png)
Current Rules
[
{
"path": "textVal1",
"ruleSet": [
{
"rule": "required"
}
]
},
{
"path": "textVal2",
"ruleSet": [
{
"rule": "required"
},
{
"rule": "length",
"greaterThanOrEqualTo": 7
}
]
},
{
"path": "val3",
"ruleSet": [
{
"rule": "required"
},
{
"rule": "listSize",
"equalTo": 2
}
]
},
{
"path": "textVal4",
"ruleSet": [
{
"rule": "required"
},
{
"rule": "url"
}
]
}
]