NO BUG: Acf link type (acf group) not returning data when used on a data attribute

Bricks version : 1.10.3

Hi,

I have an acf group with inside, a link type field (return value: array).

On bricks, I’ve added a button element, and now I’d like to add a “target” data attribute but it’s returning nothing.

image

returns nothing :
image

I tried the same dyn data on a basic text :
image

and no problem, it returns the good data :
image

I guess there is a problem with the acf group (or array key filter maybe) when it’s combined with a data attribute. (I didn’t try with a button outside an acf group though)

Can you reproduce the issue ?

Thanks

Hey @Key,

in your first screenshot you’re using array_value:target instead of array_value|target. Is this the issue?

Best,

André

Woops, thanks ! :saluting_face:

I’ve changed it to the correct syntax but it’s still the same.

BTW, the problem is the same with all array key, so target, url and title don’t output a data

I just made a quick test and it worked as expected for me.

My setup:

The button title is output correctly:

CleanShot 2024-09-24 at 18.05.04

The target attribute is output correctly:

CleanShot 2024-09-24 at 18.07.13

Best,

André

Ok I found the problem, it’s so stupid :sweat_smile:
I was testing on the /template/template-name url, not the direct page…

So yes, everything is working correctly !

Thanks for your help / time André

And here I am, just marking this as a NO BUG :D. Thanks, @aslotta for help. I’m happy to hear that it’s solved :partying_face:

Matej

1 Like