how to achieve currency type Input in custom wigdet?

1
0
-1

Hi

I'm using Bonita community version 2021.2 and I'd like to add currency format for a input.

Does anybody have any ideas?

How could I add a directive like next link?

https://stackoverflow.com/questions/24615452/apply-currency-filter-to-the-input-field-in-angularjs

Comments

Submitted by Dibyajit.Roy on Sun, 05/08/2022 - 08:13

Hello
Do you just want to add the symbol of currency with the user input. ? Or would this be dynamic based on some logic ?

If you just want to add a symbol -> go to to the Input variable -> formInput.userValue + "$"

this would show the currency symbol next to the user input. But when user submits, it would take just the integer value.
I dont think Bonita can handle currency as input. You need to use string to save such values.

regards

Submitted by nasrin788_1384620 on Sun, 05/08/2022 - 08:21

Hi

Not just symbol of currency although I want to change value after typing to a format like: 23,300

1 answer

1
0
-1

Hello nasrin788_1384620,

Bonita 2022.2 includes a currency input widget. This should make what you're trying to achieve way easier.

Don't hesitate to try it out and give us your feedback.

Cheers!

Notifications