I checked the documentation. What I would like is for my numbers to have four digits and leading zeros.
22 to 0022 1 to 0001
Can someone
You could just use pure JavaScript such as
('00000'+refCounter).substr(-5,5)
for padding with 5 zeros the value of refCounter.
NOTE: Make sure to check that refCounter is not undefined, otherwise you'll get an exception.