You are viewing limited content. For full access, please sign in.

Question

Question

Zero Padding a Field In Forms

asked on November 14, 2014

A customer requested that we zero pad a field on the form to 4 characters. For example they enter 45 and it returns 0045 and if they enter 1234 it returns 1234 when they move on to the next field. 

Is there a native way to do this or would the only option be javascript?

 

Thanks for any help,

Anthony

0 0

Answer

APPROVED ANSWER
replied on November 14, 2014

Hi Anthony,

Currently you'll need to use javascript to pad a value with leading zeros. Note that padding would require the value to be displayed as a string. If you're doing any calculations based off of that value, just keep that in mind.

Regards

0 0
replied on May 18, 2017

@████████ do you have a script to pad a value?

0 0

Replies

You are not allowed to reply in this post.
You are not allowed to follow up in this post.

Sign in to reply to this post.