Feature: #99735 - New Country Select Form Element

See forge#99735


Since forge#99618, TYPO3 provides a list of countries, together with an API and a Fluid form viewhelper. A new "Country select" form element has now been added to the TYPO3 Form Framework for easily creating a country select in a form. The new form element features a couple of configuration options, which can either be configured via the Forms module or directly in the corresponding YAML file.

Available options

  • First option (prependOptionLabel): Define the "empty option", i.e. the first element of the select. You can use this to provide additional guidance for the user.

  • Prioritized countries (prioritizedCountries): Define a list of countries which should be listed as first options in the form element.

  • Only countries (onlyCountries): Restrict the countries to be rendered in the list.

  • Exclude countries (excludeCountries): Define which countries should not be shown in the list.

The new element will be rendered as single select (<select>) HTML element in the frontend.


With the new "Country select" form element is now available in the Form Framework with a couple of specific configuration options.