• Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers
Exit
0

Add zeroes to field value

Community Beginner ,
Jun 08, 2024 Jun 08, 2024

Copy link to clipboard

Copied

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

TOPICS
Acrobat SDK and JavaScript , Windows

Views

75

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines

correct answers 1 Correct answer

Community Expert , Jun 08, 2024 Jun 08, 2024

You can use this as custom format script:

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

Votes

Translate

Translate
Community Expert ,
Jun 08, 2024 Jun 08, 2024

Copy link to clipboard

Copied

LATEST

You can use this as custom format script:

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

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines