Planet PDF Forum Planet PDF Forum
  New Posts New Posts RSS Feed - Format # ##0,00
  FAQ FAQ  Forum Search   Register Register  Login Login

Hi, welcome to the Foxit Planet PDF Forum. If you have PDF or Adobe Acrobat questions then the right place to ask them is here, in this forum.

Format # ##0,00

 Post Reply Post Reply
Author
Robert1977 View Drop Down
New Member
New Member


Joined: 05 Mar 2015
Location: Polska
Points: 21
Post Options Post Options   Quote Robert1977 Quote  Post ReplyReply Direct Link To This Post Topic: Format # ##0,00
    Posted: 17 Jun 2019 at 7:42am

I would like to change this format script because there is a problem when we enter values after the decimal point. Then I get: '1,#R'

Use something like this:

if (event.value != "") {
  if (event.value == 0)
    event.value = "";
  else
    event.value = util.printf("%,2.2f",event.value).toString().replace(/\./gim," ");
}

Could somebody help ?
Back to Top
 Post Reply Post Reply
  Share Topic   

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 11.10
Copyright ©2001-2017 Web Wiz Ltd.

This page was generated in 0.016 seconds.