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 Field for Both US/Canada and International

  1. kroeser
    Member

    Is there a way to have the Phone field formatted for both US/Canada AND International numbers? I have customers from all over and I don't want to have to put two phone fields.

    If I understand conditional tags correctly, I'd have to have a radio buttons such as US/Canada and International which is very clunky.

    Would just a Single Line Text Field be the way to go? Appreciate any suggestions. Thanks.

    Posted 13 years ago on Wednesday January 19, 2011 | Permalink
  2. A single line text field using the gform_validation hook to do custom validation on the phone value would probably be your best bet. Here is a code snippet that demonstrates the general use of the gform_validation hook.

    http://pastie.org/1478383

    Posted 13 years ago on Wednesday January 19, 2011 | Permalink
  3. kroeser
    Member

    Thanks. That may be a bit too advanced for me. I think I'll just leave it a boring text field and let them enter in their number any way they want.

    Posted 13 years ago on Wednesday January 19, 2011 | Permalink