Input Masks Library - Widget disappears when choosing currency dynamically

Hi everyone!

I’m trying to use the Input Masks Library's Currency input widget. But I want the user to select the currency first and only after choosing it, the input should be filled.
So, I want that the CurrencySymbol shown in the input to be dynamic along the selected currency by the user.

But the result I’m getting is when the user selects the Currency, the input field just disappears. More details attached below.


Before user selects the currency:


When the user selects the currency:


Implementation:



You can replicate it at: https://edubaixo.outsystemscloud.com/AppDummy/VarCurrency

Do you have any idea what I’m doing wrong?
Thank you for your time :)

Solution

Hi @edubaixo 

A new version (1.1.4) of the Input Masks Library with the fix was just published.

Best regards,

Carlos Xavier

Thank you Carlos! Good job!

Hi Edu,

what's in the action after changing Dropdown value?

Regards

Hi José,
I've not set an OnChange action for the Currency Dropdown.
I'm just assigning the Currency to a Var so it could be used on the CurrencySymbol property.

Hi @edubaixo,

You are not doing anything wrong, or at least your idea makes a lot of sense. I do not use this component for any professional use, but playing around with it I can confirm your finding that dynamically binding the CurrencySymbol to a local variable causes the InputMask widget to be hidden.

How many currency types do you wish to switch between? If these are just a handful you could create separate InputMask widgets for each currency type. Hide them all at start and display only the widget that is associated to the currency type chosen by the user in the drop down.

Regards,

AJ


Hi AJ! Thank you for your input :)

Your suggestion would might get the job done, but in my real life scenario, I'll have 50+ currencies for the user to choose, so it makes it quite impractical :C

I'm trying to play with the widget inside a WB and with events to see if I can achieve the intended result.

Solution

Hi @edubaixo 

A new version (1.1.4) of the Input Masks Library with the fix was just published.

Best regards,

Carlos Xavier

Thank you Carlos! Good job!

Community GuidelinesBe kind and respectful, give credit to the original source of content, and search for duplicates before posting.