I am using the data type as Decimal for the attribute in a form, when user enters decimal values its showing properly but when user enters whole number then the input widget does not show the default decimal digits
For Eg. User entered 12 so in the form it should display 12.00
currently its showing not showing the decimals.
Any help would be appreciated.
Can you try FormatDecimal in the OnBlur event?
https://success.outsystems.com/Documentation/11/Reference/OutSystems_Language/Logic/Built-in_Functions/Format?_gl=1*1uzams7*_ga*MTc5Nzg1NzgxOS4xNjUyNzQ4Mjk4*_ga_ZD4DTMHWR2*MTY1NTE1MDg4MS4yMTAuMS4xNjU1MTUxMjY4LjI2#FormatDecimal
it would be something like this
https://marcio-carvalho4.outsystemscloud.com/JavascriptAPIDemo/Home?_ts=637907522609654514
Let me know if it helps you :) Check the OML
Regards,
Márcio
Hi Kunal,
That's not how input boxes in web pages work, in general (that is, HTMP input boxes do not support something like that out of the box). You could take a look at one of the input mask assets in the forge, they might do what you want.