73
Views
5
Comments
Solved
[Input Masks Library] Input widget does not display 0 value inside Mask
input-masks-mobile
Reactive icon
Forge asset by Labs
Application Type
Reactive

Hi,

We have used input control in the form and we have assigned it with aggregate variable. 

If the value is 0 then it's not showing anything in textbox.

We have added show-default-value attribute to textbox but it's not working for input inside Mask.

Best Regards,

Nitin

2024-09-17 08-54-53
Jerome Rajadurai J
Solution

Hi @Nitin Chavan ,

This is because of the input type. Try to use Custom Mask with pattern (9). also convert the datatype of the variable to text. Please convert the data (Text-->Integer and Integer-->Text) where necessary. Also as @Prince Aadil Khan Panwar said, try setting a default value.)

2024-09-17 08-54-53
Jerome Rajadurai J

Hi @Nitin Chavan ,

Try to change the data type of the Input textbox to Text. It will display the default value of the variable - 0.

2022-08-26 11-04-22
Nitin Chavan

Hi @Jerome Rajadurai J ,

Thanks!

If we set input widget type as "Text" then it's working for value 0. But when we store non 0 value and load the screen it's showing 0.

While debugging I can see ArrearsAmt is 13233.

But in textbox I can see it's 0

Best Regards,

Nitin

2024-09-17 08-54-53
Jerome Rajadurai J
Solution

Hi @Nitin Chavan ,

This is because of the input type. Try to use Custom Mask with pattern (9). also convert the datatype of the variable to text. Please convert the data (Text-->Integer and Integer-->Text) where necessary. Also as @Prince Aadil Khan Panwar said, try setting a default value.)

2022-08-26 11-04-22
Nitin Chavan

Hi @Jerome Rajadurai J ,

Thanks!

Suggested solution is working :) 

I have binded local Text variable to input widget and used Number mask only.

After aggregate fetch = assigning the text variable with aggregate decimal value.

Before save action call = assigning aggregate variable with text variable

Because we are passing aggregate record to save action.

Performance and maintainability wise this is not good but I think this is a possible workaround :)

Best Regards,

Nitin

2024-05-08 06-29-37
Prince Aadil Khan Panwar

Hi Nitin Chavan,

i looked at your problem. the variable you have assigned to the input widget. just set the default value there. like this

result 


thanks 

Prince

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