My site members can update their display name. My members login bar is set to show their display name. When a member successfully updates their display name, I would like to refresh the members login bar to show their new display name. I do not want to refresh the whole site.
I see two possible ways to do this.
1: Call this function:
export function updateMembersBar ( ){
$w ( “#membersLoginBarDataset” ). refresh ()
}
However, I do not know how to find the name to use for " #membersLoginBarDataset", or if the login bar is even connected to the members collection with a dataset.
Questions here : Is the members login bar is connected to the members collection with a dataset?
If so, what is the dataset called? What do I use for " #membersLoginBarDataset"?
2: Create my own members login bar. I could do this but I would prefer to use the default login bar if there is a way to do what I’m trying to do.
Please also let me know if you think there is a better way to accomplish my goal.
Thanks.