Announcement

Collapse
No announcement yet.
X
  • Filter
  • Time
Clear All
new posts

    Float precision entry mask?

    I have a field that displays dollar value. I have not found a way yet to limit the precision of the float value to 2 decimal places. I have tried a text mask, but that approach is limited by left to right data entry. Is there a solution that could be applied to any currency field?

    Thank you.

    #2
    You can validate the field using FloatPrecisionValidator or your own custom validator that does similiar. If you want to limit it, in that it won't let them type more then two decimal places, then either need to have setStopOnError() with the validator or a ChangeHandler to check for it yourself and cancel the event

    Comment

    Working...
    X