This topic is locked

Link from List Page

5/12/2023 6:02:12 PM
PHPRunner Tips and Tricks
D
DRCR Dev author

Hi
I pulled some code from another thread. On my list page, in List page:Before record processed, I have this code:
`$data["journal_id"] = "<a href=\"approved_journals_list.php?f=(id~equals~".rawurlencode($data["journal_id"]).")\">".$data["journal_id"]."</a>";

return true;`It creates the link perfectly, however the output shows on the list page instead of the result hyperlinked
img alt
.
How do I make it show the value of $data["journal_id"] hyperlinked, instead of the HTML code printed on my page?

Sergey Kornilov admin 5/13/2023

Set 'View as' type of this field to HTML, it should help.

D
DRCR Dev author 5/17/2023

Thanks. I never realised we had that option. Works perfectly and opens up so many possibilities.
Appreciate the help