• lcameron

    (@lcameron)


    Running latest version of Contact Form 7 where we need users to enter a credit card number that must be 16 characters long. Have tried adding the minlength code however it still lets me submit the form regardless of how many characters are in the field as long as there is more than one

    [number* CreditCardNumber minlength:16 maxlength:17]

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author Takayuki Miyoshi

    (@takayukister)

    Thread Starter lcameron

    (@lcameron)

    Thanks but the instructions only seem to address when you want a number to have a min value and max value, not the number of characters. Credit Cards needs to have 16 digits and we’re trying to enforce that.

    Plugin Author Takayuki Miyoshi

    (@takayukister)

    As you see minlength and maxlength options are not available in a number* form-tag.

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘Minlength not working’ is closed to new replies.