Properties
| Type | Description | |
|---|---|---|
value | string | (optional) Value for the value component. Will take precedence over the path value given in the data context. |
defaultValue | string | (optional) Default value for the value component. Will not take precedence over the path value given in the data context. |
label | string | (optional) Field label to show above the displayed value. |
labelSrOnly | boolean | (optional) Use true to make the label only readable by screen readers. |
help | object | (optional) Provide help content for the field using title and content as a string or React.ReactNode. Additionally, you can set open to true to display the inline help, set the breakout property to false to disable the breakout of the inline help content, set outset to false to display the help text inline (inset) instead of the default outset behavior, or use renderAs set to dialog to render the content in a Dialog (recommended for larger amounts of content). |
transformLabel | function | (optional) Transforms the label before it gets displayed. Receives the label as the first parameter. The second parameter is an object containing the convertJsxToString function. |
inheritLabel | boolean | (optional) Use true to inherit the label from a visible (rendered) field with the same path. |
inheritVisibility | boolean | (optional) Use true to inherit the visibility from a field with the same path. You can find more info in the Value section. |
showEmpty | boolean | (optional) Shows the value even if it is empty. |
placeholder | string | (optional) Text showing in place of the value if no value is given. |
path | string | (optional) JSON Pointer for where the data for this input is located in the source dataset. |
inline | boolean | (optional) For showing the value inline (not as a block element). |
maxWidth | "auto" "small" "medium" "large" | (optional) Use auto for no max-width (use browser default), small, medium or large for predefined standard max widths. Defaults to large. |
transformIn | function | (optional) Transforms the value before it's displayed in the value component. |
Space | string object | (optional) Spacing properties like top or bottom are supported. |
Translations
More info about translations can be found in the general localization and Eufemia Forms localization docs.
| Key | nb-NO | en-GB | sv-SE | da-DK |
|---|---|---|---|---|
SelectCountry.label | Land | Country | Land | Land |
SelectCountry.placeholder | Velg et land | Select country | Välj ett land | Vælg et land |
SelectCountry.errorRequired | Du må velge et land fra listen. | You must select a country from the list. | Du måste välja ett land från listan. | Du skal vælge et land fra listen. |
Field.errorSummaryTitle | Feil som må rettes | Please correct the following errors | Fel som måste åtgärdas | Felter der skal rettes |
Field.stateSummary | Oppsummering: | Summary: | Sammanfattning: | Oversigt: |
Field.errorSummary | Feil som må rettes: | Please correct the following errors: | Fel som måste åtgärdas: | Felter der skal rettes: |
Field.errorRequired | Dette feltet må fylles ut. | This field is required. | Detta fält måste fyllas i. | Dette felt skal udfyldes. |
Field.errorPattern | Du må skrive inn en gyldig verdi. | You must enter a valid value. | Du måste ange ett giltigt värde. | Du skal indtaste en gyldig værdi. |
Field.optionalLabelSuffix | (valgfritt) | (optional) | (valfritt) | (valgfrit) |
List of available countries
Link to the code of the available countries.
| ISO 3166-1 alpha-2 code | en | nb |
|---|---|---|
AF | Afghanistan | Afghanistan |
AL | Albania | Albania |
DZ | Algeria | Algerie |
AS | American Samoa | Amerikansk Samoa |
AD | Andorra | Andorra |
AO | Angola | Angola |
AI | Anguilla | Anguilla |
AQ | Antarctica | Antarktis |
AG | Antigua and Barbuda | Antigua og Barbuda |
AR | Argentina | Argentina |
AM | Armenia | Armenia |
AW | Aruba | Aruba |
AU | Australia | Australia |
AT | Austria | Østerrike |
AZ | Azerbaijan | Aserbajdsjan |
BS | Bahamas | Bahamas |
BH | Bahrain | Bahrain |
BD | Bangladesh | Bangladesh |
BB | Barbados | Barbados |
BY | Belarus | Belarus |
BE | Belgium | Belgia |
BZ | Belize | Belize |
BJ | Benin | Benin |
BM | Bermuda | Bermuda |
BT | Bhutan | Bhutan |
BO | Bolivia | Bolivia |
BA | Bosnia and Herzegovina | Bosnia-Hercegovina |
BW | Botswana | Botswana |
BV | Bouvet Island | Bouvetøya |
BR | Brazil | Brasil |
IO | British Indian Ocean Territory | Det britiske territoriet i Indiahavet |
VG | British Virgin Islands | De britiske Jomfruøyer |
BN | Brunei | Brunei |
BG | Bulgaria | Bulgaria |
BF | Burkina Faso | Burkina Faso |
BI | Burundi | Burundi |
KH | Cambodia | Kambodsja |
CM | Cameroon | Kamerun |
CA | Canada | Canada |
CV | Cape Verde | Kapp Verde |
BQ | Bonaire, Sint Eustatius and Saba | Bonaire, Sint Eustatius og Saba |
KY | Cayman Islands | Caymanøyene |
CF | Central African Republic | Den sentralafrikanske republikk |
TD | Chad | Tsjad |
CL | Chile | Chile |
CN | China | Kina |
CX | Christmas Island | Juleøya |
CC | Cocos Islands | Kokosøyene |
CO | Colombia | Colombia |
KM | Comoros | Komorene |
CK | Cook Islands | Cookøyene |
CR | Costa Rica | Costa Rica |
HR | Croatia | Kroatia |
CU | Cuba | Cuba |
CW | Curaçao | Curaçao |
CY | Cyprus | Kypros |
CZ | Czech Republic | Tsjekkia |
CD | Congo, the Democratic Republic | Kongo, den demokratiske republikken |
DK | Denmark | Danmark |
DJ | Djibouti | Djibouti |
DM | Dominica | Dominica |
DO | Dominican Republic | Den dominikanske republikk |
TL | East Timor | Øst-Timor |
EC | Ecuador | Ecuador |
EG | Egypt | Egypt |
SV | El Salvador | El Salvador |
GQ | Equatorial Guinea | Ekvatorial-Guinea |
ER | Eritrea | Eritrea |
EE | Estonia | Estland |
SZ | Eswatini | Eswatini |
ET | Ethiopia | Etiopia |
FK | Falkland Islands | Falklandsøyene |
FO | Faroe Islands | Færøyene |
FJ | Fiji | Fiji |
FI | Finland | Finland |
FR | France | Frankrike |
GF | French Guiana | Fransk Guyana |
PF | French Polynesia | Fransk Polynesia |
TF | French Southern and Antarctic Lands | De franske sørterritorier |
GA | Gabon | Gabon |
GM | Gambia | Gambia |
GE | Georgia | Georgia |
DE | Germany | Tyskland |
GH | Ghana | Ghana |
GI | Gibraltar | Gibraltar |
GR | Greece | Hellas |
GL | Greenland | Grønland |
GD | Grenada | Grenada |
GP | Guadeloupe | Guadeloupe |
GU | Guam | Guam |
GT | Guatemala | Guatemala |
GG | Guernsey | Guernsey |
GN | Guinea | Guinea |
GW | Guinea-Bissau | Guinea-Bissau |
GY | Guyana | Guyana |
HT | Haiti | Haiti |
HM | Heard Island and McDonald Islands | Heard- og McDonaldøyene |
HN | Honduras | Honduras |
HK | Hong Kong | Hongkong |
HU | Hungary | Ungarn |
IS | Iceland | Island |
IN | India | India |
ID | Indonesia | Indonesia |
IR | Iran | Iran |
IQ | Iraq | Irak |
IE | Ireland | Irland |
IM | Isle of Man | Man |
IL | Israel | Israel |
IT | Italy | Italia |
CI | Ivory Coast | Elfenbenskysten |
JM | Jamaica | Jamaica |
JP | Japan | Japan |
JE | Jersey | Jersey |
JO | Jordan | Jordan |
KZ | Kazakhstan | Kasakhstan |
KE | Kenya | Kenya |
KI | Kiribati | Kiribati |
XK | Kosovo | Kosovo |
KW | Kuwait | Kuwait |
KG | Kyrgyzstan | Kirgisistan |
LA | Laos | Laos |
LV | Latvia | Latvia |
LB | Lebanon | Libanon |
LS | Lesotho | Lesotho |
LR | Liberia | Liberia |
LY | Libya | Libya |
LI | Liechtenstein | Liechtenstein |
LT | Lithuania | Litauen |
LU | Luxembourg | Luxembourg |
MO | Macao | Macao |
MG | Madagascar | Madagaskar |
MW | Malawi | Malawi |
MY | Malaysia | Malaysia |
MV | Maldives | Maldivene |
ML | Mali | Mali |
MT | Malta | Malta |
MH | Marshall Islands | Marshalløyene |
MQ | Martinique | Martinique |
MR | Mauritania | Mauritania |
MU | Mauritius | Mauritius |
YT | Mayotte | Mayotte |
MX | Mexico | Mexico |
FM | Micronesia | Mikronesia |
MD | Moldova | Moldova |
MC | Monaco | Monaco |
MN | Mongolia | Mongolia |
ME | Montenegro | Montenegro |
MS | Montserrat | Montserrat |
MA | Morocco | Marokko |
MZ | Mozambique | Mosambik |
MM | Myanmar | Myanmar |
NA | Namibia | Namibia |
NR | Nauru | Nauru |
NP | Nepal | Nepal |
NL | Netherlands | Nederland |
NC | New Caledonia | Ny-Caledonia |
NZ | New Zealand | New Zealand |
NI | Nicaragua | Nicaragua |
NE | Niger | Niger |
NG | Nigeria | Nigeria |
NU | Niue | Niue |
NF | Norfolk Island | Norfolkøya |
KP | North Korea | Nord-Korea |
MK | North Macedonia | Nord-Makedonia |
MP | Northern Mariana Islands | Nord-Marianene |
NO | Norway | Norge |
OM | Oman | Oman |
PK | Pakistan | Pakistan |
PW | Palau | Palau |
PS | Palestine | Palestina |
PA | Panama | Panama |
PG | Papua New Guinea | Papua Ny-Guinea |
PY | Paraguay | Paraguay |
PE | Peru | Peru |
PH | Philippines | Filippinene |
PN | Pitcairn | Pitcairnøyene |
PL | Poland | Polen |
PT | Portugal | Portugal |
PR | Puerto Rico | Puerto Rico |
QA | Qatar | Qatar |
CG | Congo, the Republic | Kongo, republikken |
RE | Réunion | Réunion |
RO | Romania | Romania |
RU | Russia | Russland |
RW | Rwanda | Rwanda |
BL | Saint-Barthélemy | Saint-Barthélemy |
SH | Saint Helena, Ascension and Tristan da Cunha | Saint Helena, Ascension og Tristan da Cunha |
KN | Saint Kitts and Nevis | Saint Kitts og Nevis |
LC | Saint Lucia | Saint Lucia |
MF | Saint-Martin (FR) | Saint-Martin (FR) |
PM | Saint Pierre and Miquelon | Saint Pierre og Miquelon |
VC | Saint Vincent and the Grenadines | Saint Vincent og Grenadinene |
WS | Samoa | Samoa |
SM | San Marino | San Marino |
ST | Sao Tome and Principe | São Tomé og Príncipe |
SA | Saudi Arabia | Saudi-Arabia |
SN | Senegal | Senegal |
RS | Serbia | Serbia |
SC | Seychelles | Seychellene |
SL | Sierra Leone | Sierra Leone |
SG | Singapore | Singapore |
SX | Sint Maarten (NL) | Sint Maarten (NL) |
SK | Slovakia | Slovakia |
SI | Slovenia | Slovenia |
SB | Solomon Islands | Salomonøyene |
SO | Somalia | Somalia |
ZA | South Africa | Sør-Afrika |
GS | South Georgia and the South Sandwich Islands | Sør-Georgia og Sør-Sandwichøyene |
KR | South Korea | Sør-Korea |
SS | South Sudan | Sør-Sudan |
ES | Spain | Spania |
LK | Sri Lanka | Sri Lanka |
SD | Sudan | Sudan |
SR | Suriname | Surinam |
SJ | Svalbard and Jan Mayen | Svalbard og Jan Mayen |
SE | Sweden | Sverige |
CH | Switzerland | Sveits |
SY | Syria | Syria |
TW | Taiwan | Taiwan |
TJ | Tajikistan | Tadsjikistan |
TZ | Tanzania | Tanzania |
TH | Thailand | Thailand |
TG | Togo | Togo |
TK | Tokelau | Tokelau |
TO | Tonga | Tonga |
TT | Trinidad and Tobago | Trinidad og Tobago |
TN | Tunisia | Tunisia |
TR | Turkey | Tyrkia |
TM | Turkmenistan | Turkmenistan |
TC | Turks and Caicos Islands | Turks- og Caicosøyene |
TV | Tuvalu | Tuvalu |
VI | Virgin Islands (U.S) | De amerikanske Jomfruøyer |
UG | Uganda | Uganda |
UA | Ukraine | Ukraina |
AE | United Arab Emirates | De forente arabiske emirater |
GB | United Kingdom | Storbritannia |
US | United States | USA |
UM | United States Minor Outlying Islands | USAs ytre småøyer |
UY | Uruguay | Uruguay |
UZ | Uzbekistan | Usbekistan |
VU | Vanuatu | Vanuatu |
VA | Vatican | Vatikanstaten |
VE | Venezuela | Venezuela |
VN | Vietnam | Vietnam |
WF | Wallis and Futuna | Wallis og Futuna |
EH | Western Sahara | Vest-Sahara |
YE | Yemen | Jemen |
ZM | Zambia | Zambia |
ZW | Zimbabwe | Zimbabwe |
AX | Åland Islands | Åland |