Multiple form validators

  • Hi drewm

    It would be handy if we can use multiple form validators on a single input field.

    A use-case I'm currently dealing with is checking whether a member's phone number is unique and whether it is a valid phone number. While it is possible to perform all checks with a single validator function, it doesn't seem to be possible to have different error messages for each validation type:

    1. <perch:error for="phone" type="helper">
    2. A single error message for all custom validation types
    3. </perch:error>

    Perhaps the helper attribute could have a suffix to specify the type: