In my database is an email text field & an email URL field with “mailto:me@mydomain”. When I had a table, I linked the text item to the email text field, then linked the email text field to the URL field.
Now that I put it in a repeater instead, there’s no way to link the text field to the URL field. For now I just linked the item to the URL field, but users will wonder what the “mailto:” is all about. I tried editing the item text & clicking on the link button, but it says “To add a link, try to select less text.” ??!
I tried to add an onClick event, but I haven’t been able to find code for it.
Here is a solution for you
https://www.wixshow.com/wixcode/today/Modify-repeater-items-using-Wix-Code
Having the same issue, but this link no longer works. Help, pleez!
This is an old post from 2018 and is being closed, please add a new forum post with a link to refer to this old post if needed.
Also, Andreas Kviby has not been connected with Wix for a good while now and so you won’t get any help from him.
However, that video is still available on YouTube if you search.
Modify repeater items using Wix Code
Also, search the forum for repeater posts and you should find what you need in them.
https://www.wix.com/corvid/forum/community-discussion/members-email-linked-to-repeater
https://www.wix.com/corvid/forum/community-discussion/email-link-in-repeater
https://www.wix.com/corvid/forum/community-discussion/help-links-within-repeaters
Finally, note that repeaters work differently to normal elements as they contain boxes that all act together at the same time and yet can show different content, so to interact with each repeater item separately you have to adjust the code to suit.
https://www.wix.com/corvid/reference/$w.Repeater.html