Can I populate an email from data in a repeater?

I currently use the copyToClipboard( ) function in a repeater linked to my DB so folks can click a button to copy a link from one field and some text from another field to to their clipboard and then paste it into an email. It does work just fine but I would really like to just have a button that brings up an email and copies the text and link to that instead of to the clipboard. Is this possible? Thanks in advance.

I’m not sure got your question. But try adding a button and:

$w("#repeater1").onItemReady(($i, iData) => {
    $i("#button1").link = "mailto:"  + iData.email;
})

If you also want to copy a message, you can do:

$w("#repeater1").onItemReady(($i, iData) => {
    let subject = encodeURI(iData.subject);
    let message = encodeURI(iData.message);
    $i("#button1").link = `mailto:${iData.email}?subject=${subject}&body=${message}`;
})

Yes, this is what I want. I tried both suggestions but I can’t seem to get an email to pop up. No errors are showing just nothing happening.

This is my code. See anything wrong?

It should not be inside the iconButton_click function but inside:

$w.onReady(() => {
    //here
})

@J. D. ok, I figured out how to get the subject to place but the body is just coming up blank. Is this just not possible? I found some posts that say it is not.