This topic is locked

Conditional edit in List

2/23/2011 2:14:09 AM
PHPRunner General questions
S
sgchan author

Hi, I want the Edit icon in the List view to conditionally show or hide depending on the Row status, e.g. Status field on the row. I suppose I would have to use the BeforeProcessRowList event but I don't know how to control the appearance of the Edit icon. Is this possible?
Many thanks in advance.

Sergey Kornilov admin 2/23/2011

Use $record["edit_link"] variable for this purpose.

if ($data["status"]="closed")

$record["edit_link"]=false;

else

$record["edit_link"]=true;