Here is what I tried. I identify through the email address and try to filter with it, the email being the only read-only field in the form. But this still does not set the proper details of the logged-in user.
QUOTE
import wixUsers from ‘wix-users’;
import {wixData} from ‘wix-data’;
$w.onReady(function () {
$w(“#dataset1”).setFilter( wixData.Filter() );
$w("#dataset1").onReady( () => {
let currentEmail = $w("#dataset1").getCurrentItem().email;
wixUsers.currentUser.getEmail()
.then( $w("#dataset1").setFilter( wixData.filter()
.contains(“email”))
);
} );
} );
UNQUOTE
Thanks a lot