SOLVED: How to get the value (not the label) of an acf field?

I have a simple radio button in an ACF.

Example:
value : label

Bricks give me the data of the return value I choose (value OR name). But how to get both?

In Dynamic Data – Bricks Academy I found bottom the filter: “:value” but if I use the filter in the builder like {acf_field:value} nothing changes.

What do I miss?

What is the return value set as in ACF? Is it BOTH?

It’s label in the moment. Tried also Array but found out that this don’t work out.

Can confirm this appears to be a bug. I get label and value - no matter how I set the field or :value.

1 Like

Hi Sebastian,
Thanks so much for your report!

I was able to reproduce the issue and added it to our bug tracker.

Best regards,
timmse

3 Likes

Hi guys,
We’ve enhanced the “Both (Array)” return value in Bricks 1.7.2, now available as a one-click update in your WordPress Dashboard.

With the ACF choice fields like Select, Checkbox, Radio Button, and Button Group, it is now possible to add the :value filter to render the value instead of the label.

{yourfield} renders the label
{yourfield:value} renders the value

Please let us know if you are still experiencing issues.

Best regards,
timmse

7 Likes

Awesome! Next stop: Full ACF link field support. :wink:

1 Like

Whohooo! Nice! And extremly nice that this issue was fixed that fast!

Thank you so much and I wish you and the whole Brickteam happy Easter holidays!

4 Likes