Skip to main content
Participant
October 8, 2016
Answered

How could I add a 2 digit field which on entering "1" return "01"?

  • October 8, 2016
  • 1 reply
  • 319 views

How could I add a 2 digit field which on entering "1" return "01"?

This topic has been closed for replies.
Correct answer masimpak

You can use this code as the custom Format script:

if (event.value) event.value = util.printf("%02d", event.value);

Re: Displaying numbers 1 - 9 as 01 - 09?

1 reply

masimpakAuthorCorrect answer
Participant
October 8, 2016

You can use this code as the custom Format script:

if (event.value) event.value = util.printf("%02d", event.value);

Re: Displaying numbers 1 - 9 as 01 - 09?