Hi I have a few ACF blocks which can be used on their own, or inside Repeaters and/or Flexible content.
I am trying to hide/show a few fields depending on whether the block is on its own or wrapped in a Repeater/Flexible.
I know conditional logic can be used as it is not parent aware The Blocks in question do have a useContext, so i can identify when it is wrapped or not.
Im trying to find a Javascript hook/event, which is triggered when you click a Block in the backoffice editor, so i can simply add an additional class to the side bar menu, so my CSS can target the necessary fields … Any ideas are greatly appreciated.
Thanks