Hi Bricks Community.
Could you tell me, please, how to output an element from the Group Cloneable field (Metabox.io) for example:
a) if the sub field is not empty?
and/or
b) if the switcher is on?
I have checked the docs (Filter: bricks/element/render – Bricks Academy), and found the Example #6 which shows how to output an element in ACF Repeater if the sub field is not empty, but unfortunately there are no examples with the Metabox.io Cloneable Group.
Edit: I added screenshot with the sample group custom field setup. How the proper code should look like to output the element if the Metabox switcher field with field ID: “text_switcher” (as in screenshot) is ON?
Currently, only Elementor and Oxygen can output sub-field in a group, including cloneable group. If you use these plugins, just follow the UI while connecting group data to show it.
If you use other page builders like Beaver Builder or Divi, the recommended way to show groups is creating a view or a shortcode to display the group. Then you can insert the view/shortcode anywhere with the page builder.