Skip to main content
Known Participant
Jun 8, 2024 10:45 AM UTC
Answered

Add zeroes to field value

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

This topic is closed to new replies. Start a new post to keep the conversation going.
Nesa Nurani
Nesa NuraniCorrect answer
Community Expert
Jun 8, 2024 10:46 AM UTC

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
Jun 8, 2024 10:46 AM UTC

You can use this as custom format script:

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

Translate