• Resolved allmyhoney

    (@allmyhoney)


    Hi there, when the number is submitted I am still not seeing the country code in the entry – it only shows the number the user has inputted basically. I would really want to capture the full country code also in the entry itself.

    Thanks

Viewing 5 replies - 1 through 5 (of 5 total)
  • @allmyhoney,

    Stumbled into your post. Did you see and/or try this?

    All the best!

    Thread Starter allmyhoney

    (@allmyhoney)

    Hi there, thanks for this but this example here https://community.gravityforms.com/t/how-to-capture-country-code-with-phone-field-resolved/10541/2 is useful when the user only has one country on the field correct? Because they are placing the country code into the Default Value Field and its only one country. I have 3 countries on my form I want this to work for. So I cannot do step 2 in the description where they place the US country code +1 into the default value area. I would need someway to place 3 different codes into the default value area.

    So unfortunately it does not work in my case.

    @allmyhoney,

    The instructions should work in your case.

    Just make sure your Gravity Forms’ Phone Field Settings are as follows:

    General:

    Enable Smart Phone Field = ON
    Automatically Select Countries = ON
    Default Country = (enter your default country name)
    Preferred Countries = (select the three countries you are referring to)
    Preferred Format = International
    Rules > Required = ON

    Advanced:

    Default Value = (enter the country code of your default country)
    Visibility = (check Visible)

    All the best!

    Plugin Author Kaisar Ahmmed

    (@kaisarahmmed)

    Sorry for late reply.

    I added country code option with recent update. I hope that it will be helpful for you.

    Thank You.

    Thread Starter allmyhoney

    (@allmyhoney)

    That is great, thank you both for the help and the added feature I will try this out.

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Capturing the full countrycode’ is closed to new replies.