[Input Mask Reactive] Added currency in input mask

Forge Component
(0)
Published on 8 May (2 weeks ago) by Steven Decock
0 votes
Published on 8 May (2 weeks ago) by Steven Decock

Hello,

In my version, I've added the possibility to add currency to the mask. Maybe an idea to integrate this?

Regards,

Sven


Hi Sven,


I tried your suggestion, but this doesn't work for me when I use a currency symbol like '€' for example.

Then when I try to enter a value in the field I get javascript warnings and the input is ignored.

Does that work for you, using special currency symbols like '€'?


Regards,


Steven


Sven Persijn wrote:

Hello,

In my version, I've added the possibility to add currency to the mask. Maybe an idea to integrate this?

Regards,

Sven




Hi Steven

In case of not applicability, you can try the input masks library, and it works on my side for both web and mobile




Hi Steven,

I've changed the demo a bit, so this should work. Otherwise, you can have a look at:

https://sven-persijn.outsystemscloud.com/InputMaskReactiveDemo/InputMaskDemo


Regards,

Sven

Sven Persijn wrote:

Hi Steven,

I've changed the demo a bit, so this should work. Otherwise, you can have a look at:

https://sven-persijn.outsystemscloud.com/InputMaskReactiveDemo/InputMaskDemo


Regards,

Sven

Hi Sven,


I could not test the applications you attached because of intellectual property restrictions.

I think you should attach the .oap files separately and not in a zip-file, so that the IP gets stripped automatically.

If the .oap files are in a zip file then OutSystems doesn't remove the IP when you attach them in a forum post.


Regards,

Steven 

Steven Decock wrote:

Sven Persijn wrote:

Hi Steven,

I've changed the demo a bit, so this should work. Otherwise, you can have a look at:

https://sven-persijn.outsystemscloud.com/InputMaskReactiveDemo/InputMaskDemo


Regards,

Sven

Hi Sven,


I could not test the applications you attached because of intellectual property restrictions.

I think you should attach the .oap files separately and not in a zip-file, so that the IP gets stripped automatically.

If the .oap files are in a zip file than OutSystems doesn't remove the IP when you attach them in a forum post.


Regards,

Steven 

Hi Steven,

Hereby, the forge component.

Regards,

Sven

Steven Decock wrote:

Sven Persijn wrote:

Hi Steven,

I've changed the demo a bit, so this should work. Otherwise, you can have a look at:

https://sven-persijn.outsystemscloud.com/InputMaskReactiveDemo/InputMaskDemo


Regards,

Sven

Hi Sven,


I could not test the applications you attached because of intellectual property restrictions.

I think you should attach the .oap files separately and not in a zip-file, so that the IP gets stripped automatically.

If the .oap files are in a zip file than OutSystems doesn't remove the IP when you attach them in a forum post.


Regards,

Steven 

And the modified demo.


Solution

Sven,


I updated the component to include the CurrencyPrefix.  I made it optional by the way.

Note: the reason why it didn't work for me at first was because I forgot to set the Type of my input field in the demo to 'Text'.  If you run into the same issue: input type cannot be Number if you use the prefix.


Regards,

Steven

Solution

Thanks for the update!