Skip to content

Custom Validaiton Scenarios #25

Open
@ronnieoverby

Description

@ronnieoverby

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!

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions