I am trying to display a custom field (Ex: Status) I created in ACF. There are 4 statuses as a selector field, as you can see in the screenshot of the ACF UI below.
In Bricks, I was trying to use the condition feature to try to display ONLY the status of “Vefkauf” (see Bricks UI screenshot), but all of the statuses are displayed.
Am I approaching this completely wrong? Any advice is greatly appreciated!
With the ACF choice fields like Select, Checkbox, Radio Button, and Button Group, you have to add the :value filter to render the value instead of the label.
{yourfield} renders just the label {yourfield:value} renders the value
So try with :value after the name of the acf field.
Thanks so much for your reply! I tried it like that, and it still is not displaying the “Verkauf” on the front end. Does my condition setting look off? I appreciate your help!
I am not sure that your solution will work as intended, because if I am right, your condition with != will always be true if you don’t put the condition under the query loop item.
Haha, it looks like this when conditions are applied to the body layer. I will use the first solution for now because it serves what I need until I find a more efficient way to move forward. Thanks again. Your input was huge!!
Thank you, sir, I added back the highest level of the card with the query loop and it works now. It successfully hides the unwanted statuses as you can see. I am a Webflow user but Bricks seems to be a very enjoyable builder! Thanks again!
You are correct. I was flying through it to play with the query feature. I will remove the “quick facts” div and simplify that area as you suggest.
The condition does only apply to the elements below itself.
I also assume that the body layer element has the white card background, which would be the reason that the white card background appears.
To solve all that, you could insert one new block or div element above the card layer element, put all other elements below this new element and put the condition on this new element.
Makes sense now! The loop must be applied to a wrapper block that holds all of the card elements. Here are my updated cleaned-up cards. TheBricks condition feature is pretty powerful!
Thanks for your tips! Now onto more troubleshooting in other areas!