Hi, i need code for button - so that this button can only be viewed by the author of the matter on a dynamic page, can anyone please show me the code?
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
Something like this:
const userID = wixUsers.currentUser.id; const ownerID = $w("#yourDatasetID").getCurrentItem()._owner; if(userID === ownerID) {
Of course you'll need to insert your dataset's ID where it says yourDatasetID.
like this: