How to see symbol of € in Fields

Hi, in fields that have Amount, how can i see the value with decimal and symbol ?

150,00 €


1 Like

Hi Ivan,

for Table and Label you can use Formatter For editable Fields it is not supported, but you can add label with a currency symbol to the right of a Field manually.


a possible solution would be to use a masked text field. But it will require the user to always fill the pre defined number of digits.

@Yuriy, since i had the same problem some time: is this possible when the field is used (as default via scaffolding) within a fieldGroup? If not would it be possible to think about an addition where after the edit field another label for something like a currency symbol or a help icon or something else can be placed within the fieldGroup definition?


We are planning to add special type of text field - CurrencyField in one of the next minor releases, probably in 6.4.

For now you can add a label with a currency symbol for TextField inside of FieldGroup manually using custom field:

Custom field in screen XML:

<fieldGroup id="fieldGroup"
    <column width="250px">
        <field id="title"/>
        <field id="price" custom="true"/>

Java controller:

public class ProductEdit extends AbstractEditor<Product> {
    private FieldGroup fieldGroup;
    private ComponentsFactory componentsFactory;

    public void init(Map<String, Object> params) {

        fieldGroup.addCustomField("price", (datasource, propertyId) -> {
            HBoxLayout hBox = componentsFactory.createComponent(HBoxLayout.class);

            TextField textField = componentsFactory.createComponent(TextField.class);
            textField.setDatasource(datasource, propertyId);


            Label currencyLabel = componentsFactory.createComponent(Label.class);

            return hBox;

Any update on the CurrencyField?


at the moment implementation is scheduled to 6.5 release.

It’s done now. But the way it is implemented is sadly of no use for us, as the currency is not static, it’s part of the model and can change.

This use case is one among others that we would like to be implemented : see this thread

If your currency is set from data, just set it to UI component programmatically and do not use @CurrencyValue annotation. Use CurrencyField.setCurrency()

Sure, but it does not fit our model where currency is an editable attribute like any other.