I wonder how I can automatically create a serial number for a given product, each time I make a new request.
I am a manufacturer of a product, so when I make a new request in the factory, I have to generate a new serial number for production.
By filling out the form with the characteristics of the product, I want, that in the field of serial number (a text box) (which currently put manually) appears automatically a new serial number generated as follows:
Features Serial Number: RTS0001-10
RTS: Description of the Model (at the moment is always the same)
0001: Automated counting
10: Year abbreviated to two digits
Can anyone help me on this code?