You are here

README.txt in Webform Country List 7

PURPOSE OF THIS MODULE
======================

webform_country_list is a simple addon module for the webform module that
defines a new webform component. It is compatible with both, webform version 3
and version 4.

It's a webform component that lets the user select a country out of a list that
you can configure.

To configure, you choose a set of countries (out of the complete list of all
countries) that can be selected. You can also change the order in which they
appear in the select box.

If the PHP PECL package geoip is available and it detects the country of the
visitor, and this country is in the list of available countries,
webform_country_list preselects the geoip country as default.


RELATED MODULES
===============

[countries] https://www.drupal.org/project/countries
[Piped lists of countries] https://www.drupal.org/node/221490


CONFIGURATION
=============

When adding a new component to your webform choose 'Country List' as type.

When editing the component check the 'available' checkbox for all countries that
you want to include in the select box.
By draging and dropping the "cross" sign you can also change the order in which
the countries appear in the select box.

If no country is selected when editing the component, all countries will be
available in the webform.


INSTALLING
==========

Nothing special, if you're using drush that would be

drush dl webform_country_list

drush en webform_country_list -y

You can find more information about installing contributed modules here:
https://www.drupal.org/documentation/install/modules-themes/modules-7

Instructions for installing geoip can be found here:
http://php.net/manual/en/geoip.setup.php.


DEPENDENCIES
============

Hard dependencies:
   * webform (version 3 or 4)

Soft dependencies:
   * geoip
   * form_builder

Indirect dependencies from webform 4:
   * ctools
   * views

File

README.txt
View source
  1. PURPOSE OF THIS MODULE
  2. ======================
  3. webform_country_list is a simple addon module for the webform module that
  4. defines a new webform component. It is compatible with both, webform version 3
  5. and version 4.
  6. It's a webform component that lets the user select a country out of a list that
  7. you can configure.
  8. To configure, you choose a set of countries (out of the complete list of all
  9. countries) that can be selected. You can also change the order in which they
  10. appear in the select box.
  11. If the PHP PECL package geoip is available and it detects the country of the
  12. visitor, and this country is in the list of available countries,
  13. webform_country_list preselects the geoip country as default.
  14. RELATED MODULES
  15. ===============
  16. [countries] https://www.drupal.org/project/countries
  17. [Piped lists of countries] https://www.drupal.org/node/221490
  18. CONFIGURATION
  19. =============
  20. When adding a new component to your webform choose 'Country List' as type.
  21. When editing the component check the 'available' checkbox for all countries that
  22. you want to include in the select box.
  23. By draging and dropping the "cross" sign you can also change the order in which
  24. the countries appear in the select box.
  25. If no country is selected when editing the component, all countries will be
  26. available in the webform.
  27. INSTALLING
  28. ==========
  29. Nothing special, if you're using drush that would be
  30. drush dl webform_country_list
  31. drush en webform_country_list -y
  32. You can find more information about installing contributed modules here:
  33. https://www.drupal.org/documentation/install/modules-themes/modules-7
  34. Instructions for installing geoip can be found here:
  35. http://php.net/manual/en/geoip.setup.php.
  36. DEPENDENCIES
  37. ============
  38. Hard dependencies:
  39. * webform (version 3 or 4)
  40. Soft dependencies:
  41. * geoip
  42. * form_builder
  43. Indirect dependencies from webform 4:
  44. * ctools
  45. * views