Guest passwords and member passwords

The code I embedded is: <iframe src=$w.onReady( () => {
$w(‘#dynamicDataset’).onReady( () => {
const itemUrl = $w(‘#dynamicDataset’).getCurrentItem().dashboardLink;
$w(‘#html1’).src = itemUrl;
console.log(itemUrl);

} );

} );


However, I get the error above. I want the code you gave me to look at the current users id and take them directly to their corresponding dashboardLink (their link), just like you did.