KoolReport's Forum

Official Support Area, Q&As, Discussions, Suggestions and Bug reports.
Forum's Guidelines

Link on click to another uRL from an image #2944

Open Richb201 opened this topic on on Jan 13, 2023 - 2 comments

Richb201 commented on Jan 13, 2023
       "columns" => array(
            "business_component",
            "last_date_modified"=>array("label"=>"date of document"),
            "reason"=>array("label"=>"reason for inclusion"),
            "description"=>array("label"=>"description of document"),
            "thumbnail_url" => array("label"=>"substantiation",
                "formatValue"=> "<img width='500px' height='400px' src='".base_url()."/@value' />"
            ),

when a user clicks on the thumbnail_url image, I'd like to send them to the full file in another window or tab. How would I add the link to the formatValue?

KoolReport commented on Jan 14, 2023

The formatValue should be:

"formatValue"=> "<a href="https://www.google.com"  target='_blank'><img width='500px' height='400px' src='".base_url()."/@value' /></a>"

Please change the href in A tag into something your.

Richb201 commented on Jan 14, 2023

Thx.

Build Your Excellent Data Report

Let KoolReport help you to make great reports. It's free & open-source released under MIT license.

Download KoolReport View demo
help needed
solved

None