Conditions for entire field group display or conditional logic for field display?
Conditional logic for field display based on a field in another field group can be accomplished by using an acf/prepare_field filter and modifying $field['conditional_logic']. This is an array with field keys, operators and values. You can see an example or how to set up this array by creating a field that is similar to what you want and then exporting it to PHP.
Viewing 2 posts - 1 through 2 (of 2 total)
You must be logged in to reply to this topic.
Welcome to the Advanced Custom Fields community forum.
Browse through ideas, snippets of code, questions and answers between fellow ACF users