Hide List View control when empty?

  • 7 February 2017
  • 2 replies
  • 2 views

Badge +5

I'm trying to set up some rules to hide a List View control when nothing is showing up in it.  (Specifically, when nothing is showing up in the view set up on the library referenced in the List View control settings.)  I can't find any good way to target it, though.  I tried setting a rule on the control to hide the control if isNullOrEmpty({Self}), but I found that that rule hides the entire control no matter what.

Is there any way to set up rules affecting List View controls?  It seems like you can't name them or target their properties.  Any ideas?


2 replies

Userlevel 5
Badge +14

I would say you will have to write your own javascript function that determines  whether listview is empty or not.

then you can base the rule or custom validation on result of that function.

Userlevel 1
Badge +4

Has anyone tackled this yet that would like to provide the code?

Reply