Hello,
I am having a simple but hard to solve problem. I have a website that allows users to add their own content and store it is their collection. I allow them to login through a login button. The problem is that the user needs to click another “refresh” button to show their content. I wonder if it is possible to do this automatically after login.
My refresh button code(found it in this post ):
function NotLoggedIn() {
//hide/show content
}
function Normal() {
//hide/show content
}
$w("#button94").onClick (() =>{
if (wixUsers.currentUser.loggedIn) {
Normal()
} else {
NotLoggedIn()
}
})
$w.onReady(function() {
if (wixUsers.currentUser.loggedIn) {
Normal()
} else {
NotLoggedIn()
}
})
Arthur