• Resolved lizwade

    (@lizwade)


    I’m using Contact Form 7 on my website. I have a required telephone number field. I want the form to only accept a telephone number of exactly 10 digits. Min length is set to 10 and that works; if a user tries to submit their form with less than 10 digits, a message appears that the number is too short and it will not let them submit. But when I add “maxlength:10”, the form will allow itself to be submitted, even if they have more than 10 digits.

    Here is the code in the form area:

    <p>Your Phone Number<br />
    [tel* your-tel minlength:10 maxlength:10] </p>

    What am I missing? Thank you.

    The page I need help with: [log in to see the link]

Viewing 10 replies - 1 through 10 (of 10 total)
Viewing 10 replies - 1 through 10 (of 10 total)
  • The topic ‘“MaxLength” with Tel Number Not Working’ is closed to new replies.