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
Refer this fix.
https://phpgrid.desk.com/customer/portal/questions/1002888–2f-in-urls-how-do-i-fix-it-to-just-show-
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,
I found twice urlencode and removed both.
Unfortunately the edit is still showing the <a href…… thingie…
Greetings,
Davy