Hiding Groups

Using Fabrik 3.3.2 and Joomla 3.4.8--

I have a 5 element (id, parent_id plus three field elements) repeat group that I want to hide in the detail view if there is no data for that record.

I've tried the solution suggested here:

http://fabrikar.com/forums/index.php?threads/hide-empty-groups.32823/#post-167553

but no luck.

I've tried the "hide if no usable elements" option in the group but no success.

I've tried element JS keyed on one of the data elements and can hide all three visible elements but not the group title and intro which must show when there is data.

It's the last one that baffles me. Why can I hide each of the elements with element JS but not the group?
 
Not sure about the issues you are seeing, however this is how you can hide/show a whole group with JS.

On Load and On Change:
JavaScript:
var v = this.getValue();
if (v == '7')
{
  document.getElementById('group385').style.display= 'block';
  document.getElementById('group385_tab').style.display= 'block';
} else {
  document.getElementById('group385').style.display= 'none';
  document.getElementById('group385_tab').style.display= 'none';
}

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

Thank you.

Members online

Back
Top