33
Views
3
Comments
[iMask Js] Display the value 0,00 when the variable is 0
imask-js
Reactive icon
Forge asset by Paulo Moreira
Application Type
Reactive
Service Studio Version
11.54.78 (Build 63596)

Hello, I wondered how to display the value “0.00” when the variable is 0? The input is empty when the value is 0.

I've made several changes to the script, but the input is always empty.

Has anyone had the same problem and found a solution?

Thank you.

Cátia Sousa

2025-09-04 06-33-37
Nikhil___Vijay

Hello Cátia Sousa 

If you want to display the value "0,00" instead of 0 for this show, I suggest using the formatDecimal function. You can call this function in the input parameter's onchange action so that when the input parameter's value is 0, it will automatically be converted to 0,00. 

Regards 

Nikhil Kumar Vijay

2024-05-13 07-26-17
Cátia Sousa

Hi, Nikhil.

I apologize for the delay in replying.

I tried your suggestion, but it didn't work. I found another way, using only a mask for the input, to show the decimal places with the semicolons.

Thanks for your reply! ☺️

Best regards

UserImage.jpg
Chin Kai

If you dont mind, can you share your solution... I would like to learn/understand as well. Thanks in advance!

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