Link PrivateMemberData and a Custom Profile Dataset?

Hey Guys - I’ve been looking at reference fields and custom profile pages, but I feel like I am doing something wrong. I can’t grasp how reference fields work since it has me choosing specific user emails as a reference, and not the whole column.

Basically - I have users logging in through Single Sign On (external login page) - so I cannot do a custom sign-up/sign in page in Wix. I need to be able to manually add extra parameters to the profile through another dataset or some other way. Their role at the company for example. Can someone point me into the right direction?

That’s what I need help with as well, I’m trying to figure out how to add more elements to the member profile page because the privatememberdata is locked

You’ll need to create an additional collection where you can save to fields that don’t exist in the Memeber/PrivateMemebrs collection

Ok, thank you, I have that collection created now, age, city, country, that they fill out in a form and submit on a private member page. The problem is connecting it to their profile page. When I submit that form, it updates for all members on the site on their profile. I would like the member to have control over their profile and what they submit.

@jonatandor35 Ok, thank you, I have that collection created now, age, city, country, that they fill out in a form and submit on a private member page. The problem is connecting it to their profile page. When I submit that form, it updates for all members on the site on their profile. I would like the member to have control over their profile and what they submit.

@catholicsaroundthewo add a dataset of this new collection to the member profile page and put there input fields + connect the input fields to the dataset + add a submit button and update the fields in the dataset in accordance.

@jonatandor35 Ok thanks, would I need to put text though on the profile page that would be connected to the names in the collection such as Age, Location. Is that how it’s able to be displayed from the form is if it’s connected to text on another page? For some reason I can’t have it work for that specific logged in user.

@catholicsaroundthewo You’ll need a text input, not a text box (because you want to let the member change the value).
You should filter the dataset based on the user id, and assign the values to the text inputs:

import wixUsers from "wix-users";
let user = wixUsers.currentUser;
$w.onReady(() => {
$w("#newDataset").onReady(() => {
$w("#newDataset").setFilter( wixData.filter().eq("userId", user.id)); 
let currentUser = $w("#newDataset").getCurrentItem();
$w("#ageInput").value = currentUser.age;
//etc...
})
})

That’s a way to do it (but maybe it’s more secure to use a direct query against the collection instead of a dataset that only pulls the current user in the first place. it’s up to you).

@jonatandor35 Ok, great, thank you, let me try this out. Thanks

Would this work with pulling users data and putting their channel name/channel picture in a drop-down?