limit address field to certain countries?

  • Profile Image
    draivika
    Asked on January 20, 2011 at 02:47 PM

    I want to have United States and Canada as only 2 options, can this be done within Jotform? how about with the embed code, is it safe to remove the other countries without damaging the form?

  • Profile Image
    abajan
    Answered on January 20, 2011 at 03:27 PM

    Copy the countries you need from the list below and paste them into a blank generic drop down menu. That's the best solution I can think of at present. (I'm sure there must be a better way.)

     

    Afghanistan

    Albania

    Algeria

    Andorra

    Angola

    Antigua and Barbuda

    Argentina

    Armenia

    Australia

    Austria

    Azerbaijan

    Bahamas

    Bahrain

    Bangladesh

    Barbados

    Belarus

    Belgium

    Belize

    Benin

    Bhutan

    Bolivia

    Bosnia Herzegovina

    Botswana

    Brazil

    Brunei

    Bulgaria

    Burkina

    Burundi

    Cambodia

    Cameroon

    Canada

    Cape Verde

    Central African Republic

    Chad

    Chile

    China

    Colombia

    Comoros

    Congo

    Congo (Democratic Republic)

    Costa Rica

    Croatia

    Cuba

    Cyprus

    Czech Republic

    Denmark

    Djibouti

    Dominica

    Dominican Republic

    East Timor

    Ecuador

    Egypt

    El Salvador

    Equatorial Guinea

    Eritrea

    Estonia

    Ethiopia

    Fiji

    Finland

    France

    Gabon

    Gambia

    Georgia

    Germany

    Ghana

    Greece

    Grenada

    Guatemala

    Guinea

    Guinea-Bissau

    Guyana

    Haiti

    Honduras

    Hungary

    Iceland

    India

    Indonesia

    Iran

    Iraq

    Ireland (Republic)

    Israel

    Italy

    Ivory Coast

    Jamaica

    Japan

    Jordan

    Kazakhstan

    Kenya

    Kiribati

    Korea North

    Korea South

    Kosovo

    Kuwait

    Kyrgyzstan

    Laos

    Latvia

    Lebanon

    Lesotho

    Liberia

    Libya

    Liechtenstein

    Lithuania

    Luxembourg

    Macedonia

    Madagascar

    Malawi

    Malaysia

    Maldives

    Mali

    Malta

    Marshall Islands

    Mauritania

    Mauritius

    Mexico

    Micronesia

    Moldova

    Monaco

    Mongolia

    Montenegro

    Morocco

    Mozambique

    Myanmar (Burma)

    Namibia

    Nauru

    Nepal

    Netherlands

    New Zealand

    Nicaragua

    Niger

    Nigeria

    Norway

    Oman

    Pakistan

    Palau

    Panama

    Papua New Guinea

    Paraguay

    Peru

    Philippines

    Poland

    Portugal

    Qatar

    Romania

    Russian Federation

    Rwanda

    St Kitts and Nevis

    St Lucia

    Saint Vincent and the Grenadines

    Samoa

    San Marino

    Sao Tome and Principe

    Saudi Arabia

    Senegal

    Serbia

    Seychelles

    Sierra Leone

    Singapore

    Slovakia

    Slovenia

    Solomon Islands

    Somalia

    South Africa

    Spain

    Sri Lanka

    Sudan

    Suriname

    Swaziland

    Sweden

    Switzerland

    Syria

    Taiwan

    Tajikistan

    Tanzania

    Thailand

    Togo

    Tonga

    Trinidad and Tobago

    Tunisia

    Turkey

    Turkmenistan

    Tuvalu

    Uganda

    Ukraine

    United Arab Emirates

    United Kingdom

    United States

    Uruguay

    Uzbekistan

    Vanuatu

    Vatican City

    Venezuela

    Vietnam

    Yemen

    Zambia

    Zimbabwe

  • Profile Image
    draivika
    Answered on January 20, 2011 at 03:30 PM

    Actually I only want US and Canada, not others. Yes I can remake all of the form fields one ata time, but I am wondering if I can edit the embed code and just remove the countries I don't want without disturbing the form functionality.

  • Profile Image
    abajan
    Answered on January 20, 2011 at 03:39 PM

    I'm pretty sure doing that won't harm your form's functionality but I'm no expert in these matters. Perhaps aytekin or serkan can help you. One of them is sure to read this thread eventually.

  • Profile Image
    aytekin
    Answered on January 21, 2011 at 10:28 AM

    If you just have a Country question, simply replace it with a regular dropdown field and put United States and Canada options. 

    If you have an Address field, get the full form source code and then edit the form code and remove the other countries. 

    Here is how you can get full form source code. Open your form on the Form Builder:

    1. Open "Setup & Share" tab on toolbar,

    2. Click on "Embed Code"

    3. Click on "Source" button and copy it to your web site.