Customer grid : user should be able to click email address to send mail

QuestionsCustomer grid : user should be able to click email address to send mail
Davy asked 11 years ago

Hello all,

in my customer grid, there is a field containing the email address of the user. We want to be able to click this address which should start a "mailto:email" and open a new mail.

I tried it like this :

$col = array();
$col["title"] = "email";
$col["name"] = "klantEmail";
$col["link"] = "mailto:{klantEmail}";
$col["hidden"] = false;
$col["editable"] = true;
$cols[] = $col;

It works fine in the grid, but when we open the document (for editing), the field shows the a href = …

(sorry can't paste it here because of invalid characters)
(a href is double quote mailto colon name percent40 host.be double quote [email protected])

I would like to be able to see the "normal address" here off course…

What should/can I do ?

Thanks in advance.

greetings,

Davy

5 Answers
Davy answered 11 years ago

Hey Abu,

thanks for the response.
Unfortunately, in the file jggrid_dist.php I can not find back the line

$link_row_data = urlencode($orig_row[$link_c["name"]]);

I'm using this version :

* PHP Grid Component
*
* @author Abu Ghufran <[email protected]> – http://www.phpgrid.org
* @version 1.4.6
* @license: see license.txt included in package

Sorry for the inconvenience.

Greetings,

Davy

Abu Ghufran answered 11 years ago

Just search and remove urlencode

Davy answered 11 years ago

Abu,

I found twice urlencode and removed both.
Unfortunately the edit is still showing the <a href…… thingie…

Greetings,

Davy

Abu Ghufran answered 11 years ago

I'll be releasing the free version update … should be fixed in that.

Your Answer

2 + 11 =

Login with your Social Id:

OR, enter

Attach code here and paste link in question.
Attach screenshot here and paste link in question.



How useful was this discussion?

Click on a star to rate it!

Average rating 0 / 5. Vote count: 0

No votes so far! Be the first to rate it.

We are sorry that this post was not useful for you!

Let us improve this post!

Tell us how we can improve this post?