import wixUsers from 'wix-users'; import wixData from 'wix-data'; function getfirstName() { let firstName = '' wixData.query("Members/PrivateMembersData") .eq("_id", wixUsers.currentUser.id) .find() .then( (results) => { firstName = results.items[0].firstName; } ); return firstName; } $w.onReady(function () { if (wixUsers.currentUser.loggedIn) { $w('#LogInButton1HomePage').label = `${getfirstName()} VIEW YOUR ACCOUNT`; $w("#button33").hide(); $w("#button74").hide(); } else { $w('#LogInButton1HomePage').label = `View MY MEADOWS ACCOUNT`; $w('#button33').show(); } });
top of page
Important forum update
This forum is migrating to one unified Wix community forum starting July 26th, and will be read-only during the process.
Wishlist Page is the official platform for requesting new features. You can vote, comment, and track the status of the requested features.
bottom of page