Ajax DataGrid Support Product Page
Is there a way to make a field an email hyperlink.?
Asked 06 May 2013 21:04:28
1
has this question
06 May 2013 21:04:28 Keith Bishop posted:
Is there a way to make a field an email hyperlink. All I can find is; after: "<br /><a href=\"mailto:{Mail}\"> {Mail} <a/>" which puts the email address in a line under the name and it can also be put above the name. I want to make the name field itself a hyperlink if the record has an email. "
Replies
Replied 07 May 2013 06:42:12
07 May 2013 06:42:12 Miroslav Zografski replied:
Hello Keith,
You are close to solving this, you just need to use the Before and After fields like this:
in Before place following:
<a href=\"mailto:{Mail}\">
and in After :
<a/>
This will make anything in the cell be inside a link tag - thus the name will become an e-mail hyper-link.
Regards.
You are close to solving this, you just need to use the Before and After fields like this:
in Before place following:
<a href=\"mailto:{Mail}\">
and in After :
<a/>
This will make anything in the cell be inside a link tag - thus the name will become an e-mail hyper-link.
Regards.
Replied 07 May 2013 08:45:19
07 May 2013 08:45:19 Keith Bishop replied:
Thanks for your reply. Will your method only highlight those names that do have an email in the email field or will it make all names a hyperlink? In the grid I want to be able to see those names that have an email if this makes sense.
Regards,
Keith
Regards,
Keith
Replied 08 May 2013 06:48:19
08 May 2013 06:48:19 Miroslav Zografski replied:
Hello Keith,
That method will not take in regards if the {Mail} column for that record has entry or not. It will simply place an <a> tag around the name.
Regards.
That method will not take in regards if the {Mail} column for that record has entry or not. It will simply place an <a> tag around the name.
Regards.