Hi all -
OK, I’m making slow but steady progress with my custom log-in form (it’s in a lightbox).
Ran into some coding problems: Here’s the code for my Log In button:
(note: button 4 is the “login button”, button 8 is the “view profile” button.)
Here’s the code I’ve inserted, which seems to be OK except for the last line. Error Message says PARSING ERROR | Unexpected Token
Everything seems to be OK (no red dot next to it) except for that last line.
$w.onReady( function () {
//TODO: write your page related code here…
$w.onReady( () => {
if (wixUsers.currentUser.loggedIn) {
$w(“#button4”).label = “Logout”;
$w(“#button8”).show();
}
else {
$w(“#button4”).label = “Login”;
$w(“#button8”).hide();
}
} ); << The problem line
What am I doing wrong here? This was (or I thought) the original end of code.