Hi! So I’m trying to code in a text on my home page that says “Welcome back” and then the name of the person on the page.
Welcome, Peter for example. Any idea on how to do that?
Hi! So I’m trying to code in a text on my home page that says “Welcome back” and then the name of the person on the page.
Welcome, Peter for example. Any idea on how to do that?
Hello,
You can get this information from the PrivateMembersData database collection using user ID.
Corvid: Wix Members “PrivateMembersData” Collection Fields
https://www.wix.com/corvid/reference/wix-users.User.html#id
You’ll need to find the relevant user ID in the dataset and get the information related to this specific ID (user’s name in your case).
Then assign the value to the text element you need.
https://www.wix.com/corvid/reference/$w.Text.html#text
Note : To use the PrivateMembersData collection in code, refer to it as “Members/PrivateMembersData” .