Currency Select
A dropdown for selecting a currency with optional flag display.
The Currency Select field renders a dropdown populated with world currencies. It is useful in payment forms, pricing configuration, or any scenario where the user needs to specify a currency. The field supports flag emoji display to help users visually identify currencies by their country of origin.
For the shared properties available on all fields (label, help, note, key, width, visual styling, required), see the Form Fields Overview.
Configuration
| Property | Type | Default | Description |
|---|---|---|---|
| placeholder | string | "Select currency" | Ghost text shown when no currency is selected |
| showFlag | boolean | true | Whether to display the country flag emoji next to each currency |
| defaultCurrency | string | "USD" | The currency code that is pre-selected when the field loads |
Validation
The Currency Select field extends InputFieldBase, so the required toggle is available. When required, the user must select a currency before the form can be submitted.
Example Usage
A payment form with Euro pre-selected:
{
"type": "currencySelect",
"label": "Preferred Currency",
"required": true,
"placeholder": "Choose currency",
"showFlag": true,
"defaultCurrency": "EUR"
}