mailto

create a clickable email link in a CF table list.

Overview

The issue occurs when using literal text instead of the correct variable for the link text in the column view.
In the column view, use the same variable for both the href attribute and the link text to display the email address as a clickable link.

Answered
Connectivity v6
ha hangbill 17 Jun, 2019
Hi
How do you create a link on an emial field in a Connectivity table list?
Thanks
he healyhatman 17 Jun, 2019
<a href="mailto:{var:tableview.row.model.emailfield}">Link text</a>
ha hangbill 18 Jun, 2019
Thanks
In the table listing view, did this
<a href="mailto:{var:member_list.row.members.email}">Email</a>
But it returns a literal.

https://snag.gy/FqVE7u.jpg
https://snag.gy/Rvk5KD.jpg
ha hangbill 18 Jun, 2019
Like this?
It doesn't create link on email records, nor create a new column.
Tried var:member_data too, which is the read data function name.
Nor sure what the difference is between column list and column view?

https://snag.gy/a1iYmk.jpg

Thanks
he healyhatman 18 Jun, 2019
Column list is the list of columns you want displayed in your table. Column view is what you want shown for that column. You need to identify the column the view is for.

So you need to put
members.email:<a href etc etc etc
ha hangbill 18 Jun, 2019
OK so have to leave members.email:Email in column list so that it shows, then edit the format / functionality in column views

Placed this in column views but now no email addresses showing. There is a column with Email header but no addresses
members.email:<a href="mailto:{var:member_list.row.members.email}"></a>
he healyhatman 18 Jun, 2019
Well of course not, you don't have anything between the a tags buddy. <a href="link">link text</a>
ha hangbill 18 Jun, 2019
Yes I saw that and must have added after u posted, sorry.
The a tag in the 12.10 post does not work
ha hangbill 18 Jun, 2019
Placed it in column views but no email addresses showing. There is a column with Email header but no addresses
he healyhatman 18 Jun, 2019
What does the debug look like and if you inspect a cell that should have an email in it what did the html look like
ha hangbill 18 Jun, 2019
https://snag.gy/0DrXGO.jpg
https://snag.gy/pKAuOH.jpg
he healyhatman 18 Jun, 2019
Okay so third time now, you need to put something in between the a tags!

Well of course not, you don't have anything between the a tags buddy. <a href="link">link text</a>

ha hangbill 18 Jun, 2019
OK, but how to get the members email address to show. The link text works but is literal.
Tried this members.email:<a href="mailto:{var:member_list.row.members.email}">members.email</a>
he healyhatman 18 Jun, 2019
Answer
You already have it as part of the url.
members.email:<a href="mailto:{var:member_list.row.members.email}">{var:member_list.row.members.email}</a>
ha hangbill 18 Jun, 2019
Should have figured that out... .
Thank you Healyhatman.
This topic is locked and no more replies can be posted.