Error Checking on Phone Number

This topic contains 3 replies, has 2 voices, and was last updated by  Alex Rollin 4 years, 2 months ago.

We have moved to a support ticketing system and our forums are now closed.

Open Support Ticket
  • Author
    Posts
  • #534533

    buymichigannow
    Full Member
    Post count: 29

    The error checking on the phone number is not working correctly. It will allow you to just put 1 or 2 characters and it will take it. Is there something that can be done to insure a proper 10 digit number was entered?

    #534545

    Alex Rollin
    Moderator
    Post count: 27815

    Hello,

    this will require 10 digits:

    
    
    
    ^\d{10}$
    
    #534569

    buymichigannow
    Full Member
    Post count: 29

    Thanks, where do I place that code addition.

    #534589

    Alex Rollin
    Moderator
    Post count: 27815

    In the validation pattern option for the field:

    https://wpgeodirectory.com/docs-v2/places/custom/#validation

Viewing 4 posts - 1 through 4 (of 4 total)

We have moved to a support ticketing system and our forums are now closed.

Open Support Ticket