• Resolved qtpankajsingh

    (@qtpankajsingh)


    What is correct phone number format supported by contact form 7 telephone field. Is it something like ###-###-## or ### ### ## or ######## or +# ####### or any other ?

    I tried searching about the format, but couldn’t get any result. I’m trying to implement a client side validation check, for which I need to know format that is applied on server side by contact form 7.

    https://www.ads-software.com/plugins/contact-form-7/

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

    (@takayukister)

    Currently it’s a string composed of numbers (09), symbols (()/-), and space characters. There may be a plus sign (+) at the front.

    Perhaps you could add “x” to the allowed characters for people who use format:
    123-555-1234×700 for example, where “x” denotes extension

    Is there a way to get CF7 to automatically add the dashes in between to make the number for legible when it’s received?

    example: if someone enters 9998887777 in the phone field, CF7 will automatically turn it into 999-888-7777?

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘What is the valid phone number format accepted by contact-form-7’ is closed to new replies.