# NO BUG: ACF Flexible content "dymamic Data is empty" when editing templates

**URL:** <https://forum.bricksbuilder.io/t/no-bug-acf-flexible-content-dymamic-data-is-empty-when-editing-templates/11763>\
**Category:** Bugs\
**Tags:** v1-7-3\
**Created:** [April 24, 2023, 2:03pm UTC](https://forum.bricksbuilder.io/t/no-bug-acf-flexible-content-dymamic-data-is-empty-when-editing-templates/11763 "2023-04-24T14:03:26Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![timmse](https://forum.bricksbuilder.io/user_avatar/forum.bricksbuilder.io/timmse/32/1192_2.png) [@timmse](https://forum.bricksbuilder.io/u/timmse)\
**Post date:** [April 25, 2023, 8:21am UTC](https://forum.bricksbuilder.io/t/no-bug-acf-flexible-content-dymamic-data-is-empty-when-editing-templates/11763/2 "2023-04-25T08:21:42Z")

</div>

Hi Peter,  
Thanks so much for the video!

As far as I can see you are doing it halfway correctly, but missing one crucial thing that will probably solve your issue: The condition to check against `acf_get_row_layout` is missing on your “layout blocks”, as described here:

> [@NO BUG: Flexible Content duplicating sections](https://forum.bricksbuilder.io/t/no-bug-flexible-content-duplicating-sections/10843/3):
>
> Hey Josh, Today is another one of those days where I learned something new (I never used flexible content with bricks before) smiley To prevent the duplicated sections, you need to add a condition to them and compare if {acf\_get\_row\_layout} equals your flexible\_layout\_name. If you have two possible layouts (e.g. text + image and text + text), the setup looks like this: Flexible Content Loop on the container: [image] Layout conditions: ‘text\_text’ and ‘text\_image’ are the layou…

You should add them to “Layout 1”, “Layout 2”, and “Layout 3” and then it should work as expected.

Best regards,  
timmse

---

_[View the full topic](https://forum.bricksbuilder.io/t/no-bug-acf-flexible-content-dymamic-data-is-empty-when-editing-templates/11763)._
