ACF Condition is_set

Hello there, I there a way to show a field (ACF) only if it has some value? I don’t see any option to check if a field is set or not, or null. This was supposed to be done for the 4.1 version of Pro, and so far is not done.

Hi @mcostales84,

Thanks for reaching out.
You can use the Condition and the String expression in it to specify the ACF fields through the Dynamic Content like {{dc:acf:post_field field=“fieldname”}}. Please find the screenshots describing the attribute and how to set the condition using it.

I would also suggest you go through this article on how you can use the ACF fields: https://theme.co/docs/acf-pro-and-loopers#singular-fields

Hope it helps.
Thanks

Hi @tristup, thanks for getting back to me.
That article is for a looper, I’m not inside a looper, just using dynamic content.
And actually, I figured out, I don’t have to enter the word “null”, just by leaving the third field empty and on the second selecting “is not”, works like a charm.
Now that I know, it makes sense, but to be honest is not intuitive at all, and there is no documentation for that anywhere, you should include it :wink:
Thanks!

Hey @mcostales84,

You are most welcome.
We really appreciate for letting us know that you have already figured out the solution to your issue.

Cheers.

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.