Show the currentUser email on a page in a Text box

Hi,
I have tried different scenarios but nothing works.
After initial registration and validation, when a user get to my site, he doesn’t have to reenter his credential ie ID and password.
On the main page, I would like to show the email of the logged in member.
I can create a Text box that link to my member dataset but it takes the last entry in my live db.
I would like to select the entry associated with the _ID that is logged in.
This code has to happen after the OnReady function.

Any suggestions?

Thank you!
Pierre Lacasse
Ibmretraitesqc@gmail.com

When a user signs themselves up to your website they are not logging themselves in, they are simply registering their details into your Wix CRM so that you can see it in your Contacts list on your Dashboard.

For that member to then log themselves in they either have to be approved automatically after signup or by email verification or by token etc, or manually approved by the admin of your website.

Only then will the website be able to get the email of the current user and be able to display it on screen,

To do that simply just use code to get the current users info and then simply display their email where you want it to be displayed.
https://www.wix.com/corvid/reference/wix-users.User.html

1 Like

Thank you, I was succesfull implementing your suggestions