This topic is locked

Hide fields on list and preview details page

9/4/2015 12:06:06 PM
PHPRunner General questions
S
Stucco author

Hi,
I have a solution to hide a control on a list page based on a user session variable, and it works great on that list page, but I just noticed it does not hide the column on the preview details page at the master level. Is there another way to hide a field on a list page I should be using instead? $pageObject.hideField only seems to work on add/edit.
Current solution that does not hide on preview details page:

$xt->assign("summary_fieldheadercolumn",$_SESSION["user"]["summary_field"]==1);

$xt->assign("summary_fieldcolumn",$_SESSION["user"]["summary_field"]==1);