Viewing 4 replies - 1 through 4 (of 4 total)
  • Some like this in the form itself:

    <p>Country <sup>1</sup><br />
    [select* Country id:country class:country include_blank "USA" "Canada" "Zimbabwe" "Austria" "France"]</p>

    And this in the Message body:

    Selected country: [Country]

    Ofcourse just a sample but works like a charm.

    Thread Starter Mohit Bhalodia

    (@mohitbhalodiayahoocom)

    I try that but when the full list i entered it redirect me to problem loading page.

    but when i entered sort list means some of country not all it works why all country list not accept.

    There is probably another issue you facing because your page should load
    normally the full list.

    If you use the “Generate Tag” you choose Drop-down menu and give in (the field named Choices, 1 on each line!) all the countries you wish.

    Look here (image), works like a charm.
    Still having issues? Check your other code because this (as shown on img sample) is as it has to be.
    Still not convinced, look also here.

    I copied the function in select.php and pasted into function.php and edited as I need.

    wpcf7_add_shortcode( ‘select_country’, ‘wpcf7_select_shortcode_handler2’, true );
    function wpcf7_select_shortcode_handler2( $tag ) {

    $values = array(
    ‘Afghanistan’,
    ‘Albania’,
    ‘Algeria’,

    $labels = $values;

    And added shortcode to contact form:
    [select_country country]

    Maybe it is not best way, but it solved me the problem.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Country list in contact form 7’ is closed to new replies.