Itemformatter Currency Format

When using the itemformatter for a drop down menu, is it possible to format the items for currency?

Hi, and welcome to the forum! :slight_smile:

Yes, you can use a currency format.

For example, you might do something like this:

Price: {formmenu: 1.22; 10; 2500.3; itemformatter=(value) -> {=value; format=$,.2f}}

1 Like

Why does the formatter work in {formmenu} but not in {formtext}

This works: {formmenu: 1.22; 10; 2500.3; itemformatter=(value) -> {=value; format=$,.2f}}

This doesn't work: {formtext: default=123.5; formatter=(value)->{=value; format=$,.2f}}

Hi @tonyd.

You might be expecting that the formatter in {formtext} will be applied to the preview stage just like in {formmenu}, but please give it a try after inserting the snippet; it will be applied as expected.

output

Thank you again. That does work as advised.

1 Like