hiding empty elements

p38

Active Member
I know there is a setting to hide a TAB if all elements are empty on a Form.

I can't recall if there is something similar for elements.

ie: if an element is empty, then do not show the label. I guess this could be done on Form or Group level.

Is there something I can use that does this, without having to delve into CSS or PHP?

Paul
 
There's nothing like that without reverting to js. Wouldn't it be hard to let people know what to fill in in the empty field if there was no label?
 
2 lists linked to the same DB table. Some elements get filled in on 1 list, and based on this, 2nd list to show or not show populated elements, in the display form.

Attempt to reduce clutter.
 
Ok makes sense with that use case I can give you a hand with the js if needed - but its a edge case requirement - not something I thing we'd build into the core js event UI. Let me know the form URL and elements if you need the JS
 
Hi Rob, thanks for offering.

Don't worry about this, I will quietly tell my client it cannot be done :) as I really don't want to use up your valuable time on an edge case.

perhaps I can modify the template if you can point me to where I can do this, eg:

Code:
if ($thisdata.element.value  != "") {
  echo $thisdata.label." : ".$thisdata.element;
}

Paul
 
We are in need of some funding.
More details.

Thank you.

Members online

No members online now.
Back
Top