I've set up a length rule for a postal code field, if I enable the clientside validation field validation module I get this error message when I input 322 in that field.

The Postal code must have between [min] and [max] digits. 322 is [length] digits long

Comments

rodrigoaguilera created an issue. See original summary.

rodrigoaguilera’s picture

Status: Active » Needs review
StatusFileSize
new1.89 KB

Attached a patch that solves this and also translate the message the same way field validation does and does some other token subtitution.

jelle_s’s picture

Version: 7.x-2.x-dev » 7.x-1.x-dev
Status: Needs review » Patch (to be ported)

Thanks for the patch! Fixed in 7.x-2.x-dev

jelle_s’s picture

Status: Patch (to be ported) » Fixed

  • Jelle_S committed e668bcf on 7.x-1.x
    Issue #2564831 by rodrigoaguilera: Replacement patterns are not replaced...

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.