This topic is locked

How to hide details links on the List page based on some condition

12/17/2014 1:14:52 PM
PHPRunner Tips and Tricks
admin

Lets say we need to hide details tables links if one of fields value (YearOfMake) is less than 1990.
Here is what you need to add to List page: After record processed event. In this example our details tables are Make and Model

if ($data["YearOFMake"]<1990)

{

$record["Make_dtable_link"]=false;

$record["Model_dest_dtable_link"]=false;

}

else

{

$record["Make_dtable_link"]=true;

$record["Model_dtable_link"]=true;

}