I need to generate unique IDs. Starting with “REF” as prefix, and it has to be followed up by numbers starting from “000001” and gets increased by 1 each time. (E.g : REF000001…REF000002)
This has to be triggered by a button click every time when clicked and displayed on a pop-up like a message.
@vroybal If the goal here is to continue generating IDs where the last session left off: I would suggest saving the most recent value to a database when it’s generated. You could then load the value on page load to always stay up to date. I do wonder if this could cause problems in case you have more than one user using the app at a time.