1. DE

Using parameters with data sources – country names as an example

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.

  1. Avoid repetitive work
    You can use the same data from a data source in any number of forms, without having to store the data multiple times.
  2. Data updates automatically
    If the data in your data source changes, you do not need to update your forms manually each time. All of these changes in the data source are applied automatically to the form, because this data is only accessed when the user actually accesses the form.

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.

Using parameters and pre-selecting the data accessed

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.

Specifying the region for country names

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.

Specifying the language for country names

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

A data source with parameters set can be seen, together with its corresponding drop-down list.