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.
I'm running into the same problem I usually do, which is that I don't know javascript, so if you are able to help me, please keep in mind that I need precise instructions on how to put the javascript in place. The customer already has the following Javascript in place on this form, so I need to know how to mix any new code in with it:
$(document).ready(function() {
$('#q16').after($('.action-btn'));
});
Thanks in advance!