Use data sources to integrate data quickly and effectively as options for selection elements in your forms. The approach is the same, whether you have a drop-down list, or a single or multiple choice field.
When users access your form, the data is accessed from the data source and applied as options in the form – without you having to create these options yourself beforehand.
In the case of large datasets and data you often need in your forms, data sources also offer several other advantages.
You can also use data sources for autocomplete functionality in the input field form element. If a data source has been stored for this field, users will receive autocomplete suggestions when they start typing into the input field. They can then select one of the autocomplete options to apply it and cut down their typing time.
If you only want to provide your users with some of the data from a data source, you can use parameters to pre-select the data that is accessed.
With the Country names data source, which Formcentric comes with out of the box, you can include country names automatically as options for selection elements in your form. You can use the region parameter to specify that only country names from certain regions should be displayed.
To do this, enter the region parameter for the key. Then, depending on the country names that should be listed, you enter one of the values listed below for the Value.
Value | Meaning | |||
global | All countries worldwide | |||
emea | Europe, Middle East and Africa | |||
apac | Asia-Pacific | |||
australia | Australasia | |||
north-america | North America | |||
south-america | South America | |||
central-america | Central America | |||
asia | Asia | |||
africa | Africa | |||
oceania | Oceania | |||
europe | Europe | |||
eu | Member States of the European Union | |||
dach | Austria, Germany and Switzerland | |||
efta | Member States of the European Free Trade Association | |||
zip | All countries whose postcodes (zip codes) can be validated by the postcode validator. |
You can use the lang parameter to specify the language in which country names are displayed.
To do this, enter the parameter lang for Key and then the value for the language to be used in Value.
Value | Meaning | |||
de | German | |||
en | English | |||
es | Spanish | |||
fr | French | |||
it | Italian | |||
ru | Russian |