This topic is locked
[SOLVED]

 Hide Empty Fields

12/18/2013 9:36:42 AM
PHPRunner General questions
Graphix author

Hi

I am trying to hide empty fields in list view, I have tried the sample code but it does not work.
if (!$values["Ca h"])

$xt->assign("Ca h_fieldblock",false);
I have put the code in the view page before display but it still shows the empty fields
regards

Kevan

Sergey Kornilov admin 12/18/2013

PHPRunner 7.0 has a built-in option of hiding empty fields on View page.
If you want to do that manually - make sure fieldblock name is spelled correctly. You can see the correct blockfield section name in Visual Editor in HTML mode.

Graphix author 12/18/2013



PHPRunner 7.0 has a built-in option of hiding empty fields on View page.
If you want to do that manually - make sure fieldblock name is spelled correctly. You can see the correct blockfield section name in Visual Editor in HTML mode.


Hi Sergey

hope your well?
sorry think I have confused things slightly, when I say View Page I think it is the list page I really mean!

regards

Kevan

Graphix author 12/18/2013



Hi Sergey

hope your well?
sorry think I have confused things slightly, when I say View Page I think it is the list page I really mean!

regards

Kevan


Yep I put the code in the wrong place sorry its working now DOH!!

Graphix author 12/18/2013



Yep I put the code in the wrong place sorry its working now DOH!!


just one thing though 'fieldblock' did not work I had to use 'fieldheadercolumn'
if (!$values["Ca_h"])

$xt->assign("Ca_h_fieldheadercolumn",false);
hides the empty fields
regards

Kevan