Making a button or a link go to a dynamic content email address

I have a repeater with a text element that is an email address. I would like to put a link on the text element which I would like to email when I click it by using the mailto: syntax. How do I get the dynamic value of the email address into an element like the link or into a button?

I understand that this issue probably requires custom code, I’m ok with that but don’t know where to begin. Please point me in any useful direction.

Many thanks!

Hi, Ryan Richards !
You do not need the code if the data will be placed in the collection. For example, this collection “CVR” has a text field “owner” which contains the email address.


Create such a repeater in the editor. Connect the repeater to the collection “CVR”,
Connect text “email” to field “owner” and text “dash” to field “dash” and,

On the site you will see the result


Good luck!

If I understand correctly I am already doing what you describe. However, using your example, how would you click on one of those email addresses and make it start an email? For example, in html it would be like this…

<a href="mailto: {dynamic-email-address}> {dynamic-email-address}

Hi, Ryan Richards !

Place a button in the repeater and connect the label to the “owner” field of “CVR dataset”

After publication on the site when you hover on the corresponding repeater button in the address field, you will see “mailto: …”.
When you press a button then everything will depend on the configuration of the postal service of your computer.
Would do so your link <a href="mailto: {dynamic-email-address}> {dynamic-email-address}

*(in the base of the example I changed the first email to real).

This example is rather demonstrative. Undoubtedly, it is better to use Wix tools. for user registration and contact management https://www.wix.com/code/reference/wix-users.html wix-crm-frontend - Velo API Reference - Wix.com

Good luck!