• hello, we have a text field and we completed pattern options in this way: {11}
    our goal is that the user can compile this filed with a code which is long 11 characters.
    it doesn’t work.
    where are we wrong?

Viewing 1 replies (of 1 total)
  • Plugin Author Chad Butler

    (@cbutlerjr)

    Your pattern only specifies the length. You need to also specify what characters are allowed. So you need something like the following:

    [A-Za-z0-9]{11}

    Note that all this field does is apply the regex as the input pattern attribute, which is an HTML5 specification. So anything in this regard that doesn’t work isn’t actually anything in the plugin.

Viewing 1 replies (of 1 total)

The topic ‘Pattern length’ is closed to new replies.