Hi, im trying to filter a dataset by user email. Can you please help me to do this?
In the Dataset in add filter option i see 2 options enabled:
Manual Entry
Another Dataset
but i need to set the current user email. i saw a code block to get the email when the page load, im able to see it in the console log, but… how can i add that email to the datase filter?
import wixUsers from ‘wix-users’;
var myUser = wixUsers.currentUser;
var userEmail;
$w.onReady( function () {
myUser.getEmail()
.then( (email) => {
userEmail = email; // “user@something.com”
console.log(userEmail);
} );
});