This topic is locked

Hide empty fields on list page

8/7/2013 9:59:28 PM
PHPRunner General questions
A
andolo author

I have just installed PHP Runner 6.2, and I am trying to find a way to hide empty fields on my List page. The event code suggested in the manual for hiding empty fields just apply to the View page. It runs like this (fieldblock name just an example):
if (!$values["EPAHighway"])
$xt->assign("EPAHighway_fieldblock",false);
But on the List page there are no such field blocks to address. Anyone having a clever suggestion for a code snippet?
/Anders

C
cgphp 8/7/2013

There is no a programmatic way to do it but you can unselect the field from the "Choose fields" tab (http://xlinesoft.com/phprunner/docs/choose_fields.htm).