Not sure how you can do this without Fusion.
If you are using Fusion, it's pretty straight forward. For each new issue that meets a specific criteria, e.g. a certain issue form is attached, look at the value of the field "Issue Type" on the form, then reference a table that has been set up to keep track of each issue type's current reference number. If Issue Type = Corrective Action, it would locate Corrective Action in row 5 of our example table. In the column to the right, in the same row as Corrective Action, there is a value of 1200. Fusion copies that value to a text box "Custom Reference Number" in the issue's custom form, and also increases the value in the table to 1201, so the next time the card is run and the issue type = Corrective Action, 1201 will be the Custom Reference Number copied to the text box. I would also use a calculated field on the form to stamp the value, in the event a user accidentally deletes or changes the value on the form.
I've done this in the past for project numbering, since the number of digits in the system reference number is not user friendly, and also because different groups like to have their own sequence of project numbers. William English T-Mobile
If you like my content, please take a moment to view and vote on my Idea Requests: https://tinyurl.com/4rbpr7hf