Feature: #99735 - New Country Select form element
See forge#99735
Description
Since Feature: #99618 - List of countries in the world and their localized names, 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 creating a country select in a form easily. 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
(prepend
): Define the "empty option", i.e. the first element of the select. You can use this to provide additional guidance for the user.Option Label Prioritized countries
(prioritized
): Define a list of countries which should be listed as first options in the form element.Countries Only countries
(only
): Restrict the countries to be rendered in the list.Countries Exclude countries
(exclude
): Define which countries should not be shown in the list.Countries
The new element will be rendered as single select (<select>
) HTML
element in the frontend.
Impact
The new "Country select" form element is now available in the Form Framework with a couple of specific configuration options.