22
Views
4
Comments
[Input Mask React] TextMask defaulting the field to 0 if empty
inputmask-react
Reactive icon
Forge asset by João Barata
Application Type
Reactive

Hello,


I'm using the text mask with two different regex expression:

1. "*{0,20}"

2. "9{10}"

In both cases, if the field is left blank, when the save action occurs, the fields are defaulted to 0.


Anyone else faced this issue? 


Best,

Lorena

2024-06-24 15-21-58
Ahmed Hani

Hello Lorena
I've tried to replicate your case. However, I'm not getting 0 as value (instead I'm getting empty string)
Can you share your configuration or an oml?

I've shared my sample oml.

InputMaskReactText.oml
2024-01-04 09-21-21
Venkatesaiya

Hello Sobu,

There is a similar issue that has been solved in another discussion titled '[Input Mask React] 
[Input Mask React] Currency mask has pre defined placeholder as 0 discussion. It may help you 

2022-12-30 07-28-09
Navneet Garg

I used this plugin in past but didn't face that issue can you share oml file so can check your implementation ?

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