# Create custom member page unique to each user

**URL:** <https://forum.wixstudio.com/t/create-custom-member-page-unique-to-each-user/42194>\
**Category:** Ask the community\
**Tags:** wix-members-area, question, code\
**Created:** [August 10, 2020, 2:28am UTC](https://forum.wixstudio.com/t/create-custom-member-page-unique-to-each-user/42194 "2020-08-10T02:28:12Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![ahmad-abuawwad](https://avatars.discourse-cdn.com/v4/letter/a/49beb7/32.png) [@ahmad-abuawwad](https://forum.wixstudio.com/u/ahmad-abuawwad)\
**Post date:** [August 10, 2020, 2:28am UTC](https://forum.wixstudio.com/t/create-custom-member-page-unique-to-each-user/42194/1 "2020-08-10T02:28:12Z")

</div>

Hello all,

I am trying to add a members area in my website where the admin (me in this case) could post data unique to each user that only the user can see. For instance, each user can sign up and can see their data that was posted by the website admin. Each user has unique data and can’t see other users data. Hope I made it as clear as possible, thanks in advance.

---

<div class="post-metadata">

**Author:** ![arthurvalatin](https://sea1.discourse-cdn.com/wix/user_avatar/forum.wixstudio.com/arthurvalatin/32/19996_2.png) [@arthurvalatin](https://forum.wixstudio.com/u/arthurvalatin)\
**Post date:** [August 10, 2020, 4:26am UTC](https://forum.wixstudio.com/t/create-custom-member-page-unique-to-each-user/42194/2 "2020-08-10T04:26:36Z")

</div>

Hi Ahmad,

I know how to achieve this! Ok, so you added a private members page right? Then, add a repeater. Add a database called “notifications”. Add the field “email”(field type as TEXT) & the field “notification”(field type as rich text). Then publish your site. Then, connect the repeater to to database(using a dataset). Only connecting the “notification” field will do. Then you add this code to the member page:

```javascript
import wixUsers from 'wix-users';
import wixData from 'wix-data';

    $w.onReady(function (){
        $w("#listRepeater").show(); //your repeater ID
 let user = wixUsers.currentUser;
 let userEmail;
    user.getEmail().then( (email) => {
        userEmail = email;
        $w("#dynamicDataset").onReady(() => {
        $w("#dynamicDataset").setFilter(wixData.filter()
        .eq("email", userEmail)
        )   
        })
    });

});

```

The repeater Id is #listRepeater. The dataset Id is #dynamicDataset.

So, in this code, the notification that has the user’s email will show only to that member who is logged in with that message. So, you can write your first notification & the email address of the user you want the message to see (write it in your database).

Hope this is what you where wanting to achieve. You can also create a private members chat with this(I am using it like that).

Arthur

---

<div class="post-metadata">

**Author:** ![ahmad-abuawwad](https://avatars.discourse-cdn.com/v4/letter/a/49beb7/32.png) [@ahmad-abuawwad](https://forum.wixstudio.com/u/ahmad-abuawwad)\
**Post date:** [August 10, 2020, 6:03am UTC](https://forum.wixstudio.com/t/create-custom-member-page-unique-to-each-user/42194/3 "2020-08-10T06:03:58Z")

</div>

I honestly really appreciate your help Arthur, I’ll follow your steps and let you know how it went

---

<div class="post-metadata">

**Author:** ![careerpathzach](https://sea1.discourse-cdn.com/wix/user_avatar/forum.wixstudio.com/careerpathzach/32/3202_2.png) [@careerpathzach](https://forum.wixstudio.com/u/careerpathzach)\
**Post date:** [August 13, 2020, 5:12pm UTC](https://forum.wixstudio.com/t/create-custom-member-page-unique-to-each-user/42194/4 "2020-08-13T17:12:11Z")

</div>

Hi there,

I’m incredibly new to posting code in there, but am trying to accomplish the same thing. When I entered the code on the page, it gave me messages like these: “#listRepeater” is not a valid selector. It does the same for the #dynamicDataset. Are those just placeholders for something I should be entering there?

For what it’s worth I have no coding experience whatsoever, so any help is appreciated!

Thank you!

---

<div class="post-metadata">

**Author:** ![arthurvalatin](https://sea1.discourse-cdn.com/wix/user_avatar/forum.wixstudio.com/arthurvalatin/32/19996_2.png) [@arthurvalatin](https://forum.wixstudio.com/u/arthurvalatin)\
**Post date:** [August 13, 2020, 10:56pm UTC](https://forum.wixstudio.com/t/create-custom-member-page-unique-to-each-user/42194/5 "2020-08-13T22:56:01Z")

</div>

@careerpathzach , Hi.  
#listRepeater is the repeater’s **ID**.

 ![](https://us1.discourse-cdn.com/wix/original/3X/1/c/1c2c4153416c95c87186ee520ded843db81cb94e.jpeg)

#dynamicDataset is the dataset’s **ID** that is connecting the repeater to the database.

 ![](https://us1.discourse-cdn.com/wix/original/3X/6/3/6352546fe5ca288fa8e0c50a626520b402d6e66f.jpeg)  
This might help you:  
[https://support.wix.com/en/article/corvid-working-with-the-properties-panel](https://support.wix.com/en/article/corvid-working-with-the-properties-panel)

---

<div class="post-metadata">

**Author:** ![careerpathzach](https://sea1.discourse-cdn.com/wix/user_avatar/forum.wixstudio.com/careerpathzach/32/3202_2.png) [@careerpathzach](https://forum.wixstudio.com/u/careerpathzach)\
**Post date:** [August 17, 2020, 5:53pm UTC](https://forum.wixstudio.com/t/create-custom-member-page-unique-to-each-user/42194/6 "2020-08-17T17:53:45Z")

</div>

I appreciate the help!

Perhaps you can help me with another question?

I work for a non-profit whose trying to develop a website to serve our clients virtually. Our clients are assigned Case Managers who specifically work with them on their case. What we’re picturing is someone having a unique member page that has a “Contact Case Manager” button/page of sorts, that lets them book an appointment or contact _their_ specific case manager.

Would the code above be reworked to support that sort of thing? Do you know if that’s possible through Wix’s Booking App or would we want to use something Calendly in its stead?

---

<div class="post-metadata">

**Author:** ![arthurvalatin](https://sea1.discourse-cdn.com/wix/user_avatar/forum.wixstudio.com/arthurvalatin/32/19996_2.png) [@arthurvalatin](https://forum.wixstudio.com/u/arthurvalatin)\
**Post date:** [August 18, 2020, 12:29am UTC](https://forum.wixstudio.com/t/create-custom-member-page-unique-to-each-user/42194/7 "2020-08-18T00:29:40Z")

</div>

@careerpathzach , Hi  
I haven’t worked with the Wix bookings app before so I can’t tell if you can do it. I did however find an example tutorial that might just be what you are looking for: [https://www.wix.com/corvid/example/quick-book-and-pending-appointments](https://www.wix.com/corvid/example/quick-book-and-pending-appointments)  
I am sorry if this isn’t what you wanted to achieve.

---

<div class="post-metadata">

**Author:** ![hajjarferas](https://sea1.discourse-cdn.com/wix/user_avatar/forum.wixstudio.com/hajjarferas/32/35493_2.png) [@hajjarferas](https://forum.wixstudio.com/u/hajjarferas)\
**Post date:** [November 5, 2022, 11:46am UTC](https://forum.wixstudio.com/t/create-custom-member-page-unique-to-each-user/42194/8 "2022-11-05T11:46:04Z")

</div>

Thanks man…
