Hi Team
Requirement is as follows:
I have a decimal fields around 25. Just want to have $ sign as well as restrict user to enter numbers upto 2 decimal places . How we can achieve this?
Hi Sourav
have a look at https://success.outsystems.com/documentation/11/reference/outsystems_language/logic/built_in_functions/format/
Regards
Hi
Thanks for sharing this.
I have already tried to implement this but it allows me to enter as many decimal places as I want.OnChange event I have used one assign statement in which I have written this
TextToDecimal(FormatDecimal(GetProducts.List.Current.Product.Price,2,".",""))
Hi @Sourav Sandhu,
Hope you're doing well!
You can refer these links:
https://www.outsystems.com/forums/discussion/71525/input-mask-react-forcing-2-decimal-places/
https://www.outsystems.com/forums/discussion/79771/input-mask-reactive-input-mask-reactive-not-working-with-decimal/
Regards,
Hi Saurav,
Please try below demo and let us know if its work for you.
Demo link: DecimalDemoLink
Attaching sample oml for reference.
Thanks,
Ajit Kurane.