8
Views
4
Comments
InputMaskReact - Problem regarding with currency mask and built-in validation.
Question
Application Type
Reactive

Hi, sorry for this newbie question, my problem is that I'm using currency mask in reactive website. And I'm using bulit-in validation from outsystems. The problem is stated in picture below 

Hoping to get a solution here. Thank you

mvp_badge
MVP
Rank: #17

Hi Syakir,

Which inputmask react Forge component are you using? There are several, and you didn't use the option to select a Forge component when you where writing down your question.

Regards,

Daniel

mvp_badge
MVP
Rank: #17

If you used this Forge component: https://www.outsystems.com/forge/component-overview/7838/inputmask-react

Then the only way I got it working is by setting Mandatory on the input to False, and added logic to validate the input:

Still I needed to explicitly set the IsValid to true if a value was entered, or else OutSystems would keep reporting about Expecting a currency.


Rank: #3627

Here I attach an OML for reference

InputMaskSample.oml