421
Views
8
Comments
Solved
[Input Mask Reactive] Added currency in input mask
Question
input-mask-reactive
Reactive icon
Forge asset 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


InputMaskReactive.oml
2020-03-12 15-06-24
Steven Decock
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

2020-03-12 15-06-24
Steven Decock

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




2023-10-16 05-50-48
Shingo Lam

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




2020-03-10 08-50-23
Sven Persijn

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

InputMaskReactive.zip
2020-03-12 15-06-24
Steven Decock

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 

2020-03-10 08-50-23
Sven Persijn

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

InputMaskReactive.oap
2020-03-10 08-50-23
Sven Persijn

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.


InputMaskReactiveDemo.oap
2020-03-12 15-06-24
Steven Decock
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

2020-03-10 08-50-23
Sven Persijn

Thanks for the update!

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