Create a random number to be shown on a form "Success Message."

Question:
[Clearly ask your question.] I need to create a way to generate a random number upon the submission of an Alert form so it appears in the Success Message. This is needed to be used as a ticket number so an anonymous user can follow up on a submission. Required for “Whistleblower” regulations. I think in Automations this may be done with simple code?

Product:
[Which editor or feature is your question most relevant to? e.g. Wix Editor, Wix Studio Editor.] Wix Studio Editor

What are you trying to achieve:
[Explain the details of what you are trying to achieve. The more details you provide, the easier it is to understand what you need.] Success Message should show something like this:

Thank you


for contacting us, we take your concerns seriously. Please retain this ticket number for future reference {generated random number}.

What have you already tried:
[Share resources, forum topics, articles, or tutorials you’ve already used to try and answer your question.]

Additional information:
[Include any other pertinent details or information that might be helpful for people to know when trying to answer your question.]

A random ID is already generated for each CMS entry, sure you want another?

I need this random, not repeatable number to appear in the Success Message upon submission of the form and somehow also be attached to the form data itself so it can be tracked for future reference.

Again, that already exists, _id

OK< how do I implement it as described?

OK, I see this ID in the contacts submission data. How can that number, as complex as it is, be then posted into the Success Message of the submitter? As well as some simple text:

Thank you for your submission, Eurofoil takes your information seriously: Please save this ticket number for future reference: 74c38189-2da3-4bbb-bd86-a1da12e67756