PLEASE NOTE: These forums are no longer utilized and are provided as an archive for informational purposes only. All support issues will be handled via email using our support ticket system. For more detailed information on this change, please see this blog post.

Phone formats

  1. Hi,

    I'm having an issue with the phone form field on one of my clients' sites; in the Netherlands there's also phone numbers with the format ####-######, but these are not valid in the current settings, so people are having difficulties filling in the right information.

    I guess it must be possible to change the preg_match function that validates the phone field to accept either format, but am not that good with regex, and would rather not mess around in the core. I wonder if this maybe could be done with a hook somewhere?

    Any suggestions are appreciated.

    Posted 14 years ago on Tuesday May 11, 2010 | Permalink
  2. The international phone format is free form. It should accept any format. Have you changed the phone field to international format?

    Posted 14 years ago on Tuesday May 11, 2010 | Permalink
  3. Oops; that does the trick. I did not try before, cause I thought it would need the international prefix also...sorry for my ignorance and thx for the quick reply!

    Posted 14 years ago on Tuesday May 11, 2010 | Permalink