Make Random Id Number in Collection(CMS)

I need to make an field in collection that make random number when user clicked the button.

that like an unique tracking id.

Without Velo-Code? :thinking: :face_with_hand_over_mouth: :face_with_hand_over_mouth: :face_with_hand_over_mouth: :face_with_hand_over_mouth: :face_with_hand_over_mouth:

With velo,if you know

let myRandomID = generate_RandomID; console.log('Random-ID: ', myRandomID);

function generate_RandomID() {
  return Math.random().toString(36).substr(2, 8);
}
1 Like

I am not good at coding,
Can you give the full code that

  1. i need to generate a number that adds 10 or any number to the a certain value given
  2. store it in the field(id=‘orderId’) collection (id=‘Checkout’)
  3. Display that number in a text box id=‘orderidtxt’

This would be more like a job, then just a help.

When i hear CHECKOUT, i already know, that to fullfill your wish → much more coding and setup will be needed then you maybe expect, since you are working with Wix-Stores-App.

What you are doing is → CUSTOMIZATION of Wix-Stores. Normaly people pay for such work.

If you still want to go that way —> velo-ninja@outlook.com

1 Like

It will be great if you can share it with us