function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
arasuarasu 

How can we format number fields to pad zeros to the left?

Hi,
 
How can we format a custom number or text field to pad zeros (0) on the left of a 5-digit number.
For e.g: If user enters 346, then it should be saved and displayed as "00346".
 
Thanks and regards,
Ambili
NeilMessenbird.ax279NeilMessenbird.ax279

You can use the lpad formula

For instanceTo 'pad' out a day to always be two digits try:-

lpad(text(day(UsageEndDate)),2,'0')

 

arasuarasu
Hi,
 
Thanks a lot for the quick solution. It works great.
 
Regards,
Ambili