Unfortunatly I havnt been able to figure out how to do this as a button, but if you use a text element as a placeholder in the format of an email, it becomes a clickable mailto link, if you then attach that text element to the data, it will work as described as a clickable mailto link that fetches the email from your
import wixLocation from 'wix-location';
$w.onReady( () => {
$w('#button20').onClick ( () => {
const kontaktPerson = $w('#text81').text;
//The text from the textbox from my dynamicpage
const title = $w('#title').text;
//I needed the title for the subject field in the mail
const email = ("mailto:"+kontaktPerson+"?subject="+title);
wixLocation.to(email);
});
});