Open
Description
I'm wondering how to add custom validation functions.
My current scenario is this:
I have 2 text inputs inside a single control-group:
- Driver's License State
- Driver's License #
The validation rules are:
State is required only if the # if filled in. State must be 2 characters long.
I'm thinking I need a custom validation function, but I don't see in the documentation how to add it.
I also want these 2 inputs to share a single help-block, because logically it's 1 field, though it has 2 input.
Thanks for the library and your help with this problem!