Issue when formatting text field with servoy format

Forum to discuss the new web client version of Servoy.

Issue when formatting text field with servoy format

Postby bhavesh.panchal » Fri Mar 02, 2018 3:59 pm

Hello

we are using "servoyformat.js" for formatting Number/currency in our third party control.
i have applied format "#0.00" to Text-box.

Now, every time when i am typing it return value like.
=> 3.587 -> 30.00
=> 46 -> 40.00

i want the result like.
=> 3.587 -> 3.59
=> 46 -> 46.00

Note: in formatState parameters that are passed are (type : "TEXT", display: "#0.00", edit: "#0.00")
Please guide how to do it.
bhavesh.panchal
 
Posts: 3
Joined: Wed Feb 28, 2018 11:13 am

Return to Servoy NGClient

Who is online

Users browsing this forum: No registered users and 3 guests

cron