Home › Forums › Add-ons › Flexible Content Field › conditional in generated php code › Reply To: conditional in generated php code
Not sure what type of field you’re talking about or if you want to hide the entire layout.
If this is a select type field then you can dynamically load the choices in the select field https://www.advancedcustomfields.com/resources/dynamically-populate-a-select-fields-choices/. This also works with radio and checkbox fields.
Welcome to the Advanced Custom Fields community forum.
Browse through ideas, snippets of code, questions and answers between fellow ACF users
Helping others is a great way to earn karma, gain badges and help ACF development!
We use cookies to offer you a better browsing experience, analyze site traffic and personalize content. Read about how we use cookies and how you can control them in our Privacy Policy. If you continue to use this site, you consent to our use of cookies.