add related data only on some condition?

burghard

Member
Is it possible to suppress the add link for related data on some condition of the row? may be at one of the PHP events? onLoadData?
 
If the condition is related to an element (with only some possible values) you can hide the link via CSS (set element to "use as row class" and add custom CSS).

onLoadData: https://fabrikar.com/forums/index.p...-date-element-to-show-how-many-days-old-it-is

Something like
Code:
$data = $model->getData();

$x="568___66-70-568_list_heading"; //See in var_dump or page source what you need for 568___66-70-568
foreach ($data as $group)
{
  foreach ($group as $row)
  {
  
    if (some condition) $row->$x = "replace_your_link";
  }
}
 
We are in need of some funding.
More details.

Thank you.

Members online

Back
Top