I'm creating a sequence number on a form that should be in the following format:
yy-[zero-padded sequence] (i.e. - 19-0001)
I'm using this method to create an automatically increasing sequence number, but that's only the first step. I need a way to get that number zero-padded to 4 digits, and I need the current year in 2-digit format.
My plan is to put each of these values in a hidden field, then concatenate the values to form the sequence number.
Thanks in advance!