Coding Question

Question:
How do I code a system where when a user signs up. It will give the user a randomly generated 10 digit number. (Pretty much a User ID system). Then send that user their user ID number via a member’s chat from the Site’s Owner account.

Product:
Wix Editor

What are you trying to achieve:
A user ID system that gives the user a random 10 digit number ID as a label when signing up. Than gives it to them someway.

What have you already tried:
I’ve tried finding a 3rd party app to do it for me (No Luck). I also tried contacting Wix customer support (Also No Luck).

Additional information:
Please help

Check out ‘wix members’ . Doesn’t that suit?

Sorry Wix got blocked at my school and I got it back today, but anyway No wix members does not suit. As it deosn’t have a built in feature for it.

Is it to access member only pages? In which case wix-members certainly allows control of access to restricted pages with an email and password.

Alternatively. You could create a dataset and fill the new users data with your own form. Part of which could include a random number generator. (Little more complicated if you need to ensure it’s unique) Then add a data insert hook to fire off an email (I use sendgrid- 100 emails per day has no charge)

I don’t really understand what you’re trying to accomplish.

I want a user ID system so that I can orginize my members and make it easier on site staff to fine members from large lists. I want 3 things to happen when a user signs up

  1. Random number is generated
  2. This is put on their contact as a label or something
  3. Send this ID to the person via chat or email

I also have 0 coding experience with wix + velo
Please help

Wix members will automatically have a generated User ID, it is probably a mixture of letters and numbers but I’m sure that wouldn’t defeat your purposes? The ID is private to the system by default, I think all ID fields are usually hidden as default in Collections but you should be able to dynamically display the auto generated ID of the (logged in) user on any page if you really wanted, ie on their member page, or on a member bar on every page etc, no limits to that really!

um how would I enable me and the logged in user to see it

And you feel that it’d be easier for site staff to search for a 10 digit number rather than an email, or name?

yes as most of our logging sheets (for site punishments cause its a social site) are massive and would be easier to search it

Check out the link above.

1 Like

You’ll be able to see the member IDs in your collections too, either in the members Collection itself or if they have created content in a collection on your site you should be able to view the “Owner” one of the hidden fields by default.

An example ID looks like this: “b62a1544-844e-4765-a8b0-6979033325c2”.
Every user will have one when signed up and it is what Wix is using to identify users anyway. You should be able to connect this field to something on your page dynamically so the logged in user can see their own number (or show it va code as the other reply suggests).

Could you send screenshots to those areas as well as give me the code to add this.