Useful WordPress Contact Form 7 Field Definition Templates

Here are some useful field definitions for use in WordPress Contact Form 7 that are useful when collecting mailing addresses.

Canadian Provinces (English / 2 characters )

<p><label for="province">Province (required)</label><br>
[select* province id:province include_blank "AB" "BC" "MB" "NB" "NL" "NS" "NT" "NU" "ON" "PE" "QC" "SK" "YT"]</p>

Canadian Provinces (French / 2 characters )

<p><label for="province">Province (required)</label><br>
[select* province id:province include_blank "AB" "BC" "MB" "NB" "NL" "NS" "NT" "NU" "ON" "PE" "QC" "SK" "YT"]</p>

Canadian Provinces (English / Full names)

<p><label for="province">Province (required)</label><br>
[select* province id:province include_blank "Alberta|AB" "British Columbia|BC" "Manitoba|MB" "New Brunswick|NB" "Newfoundland and Labrador|NL" "Nova Scotia|NS" "Northwest Territories|NT" "Nunavut|NU" "Ontario|ON" "Prince Edward Island|PE" "Quebec|QC" "Saskatchewan|SK" "Yukon|YT"]</p>

Canadian Provinces (French / Full names)

<p><label for="province">Province (obligatoire)</label><br>
[select* province id:province include_blank "Alberta|AB" "Colombie-Britannique|BC" "Manitoba|MB" "Nouveau-Brunswick|NB" "Terre-Neuve-et-Labrador|NL" "Nouvelle-Écosse|NS" "Territoires du Nord-Ouest|NT" "Nunavut|NU" "Ontario|ON" "Île-du-Prince-Édouard|PE" "Québec|QC" "Saskatchewan|SK" "Yukon|YT"]</p>

Australian States (English / 3 characters)

<p><label for="state">State (required)</label><br>
[select state id:state include_blank "ACT" "NSW" "NT" "QLD" "SA" "TAS" "VIC" "WA"]</p>

United States of America -- USA (English / 2 characters)

<p><label for="state">State (required)</label><br>
[select state id:state include_blank "AK" "AL" "AR" "AS" "AZ" "CA" "CO" "CT" "DC" "DE" "FL" "FM" "GA" "GU" "HI" "IA" "ID" "IL" "IN" "KS" "KY" "LA" "MA" "MD" "ME" "MH" "MI" "MN" "MO" "MP" "MS" "MT" "NC" "ND" "NE" "NH" "NJ" "NM" "NV" "NY" "OH" "OK" "OR" "PA" "PR" "PW" "RI" "SC" "SD" "TN" "TX" "UT" "VA" "VI" "VT" "WA" "WI" "WV" "WY"]</p>

Have a favourite you would like to add to this list? Drop it into a comment below.

Best regards,

Michael


Add a comment:

Your email address will not be published. Required fields are marked *