Skip to main content
Known Participant
June 8, 2024
Answered

Add zeroes to field value

  • June 8, 2024
  • 1 reply
  • 235 views

How do I add 5 zeroes to field value, so when I input 1 it shows 00001 or 23 show as 00023?

This topic has been closed for replies.
Correct answer Nesa Nurani

You can use this as custom format script:

event.value = ("00000" + event.value).slice(-5);

1 reply

Nesa Nurani
Community Expert
Nesa NuraniCommunity ExpertCorrect answer
Community Expert
June 8, 2024

You can use this as custom format script:

event.value = ("00000" + event.value).slice(-5);