42
Views
4
Comments
Format Decimal field
Application Type
Reactive

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?



UserImage.jpg
Sourav Sandhu

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,".",""))

2025-04-17 05-42-16
Ajit Kurane

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.

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