Home › Forums › ACF PRO › Conditional Logic › Reply To: Conditional Logic
Conditional logic currently only works on choice fields. I’ve heard some rumors about it possibly adding to things like taxonomy fields but I can’t confirm that. It does not work on the presence or absence of a value in a field. For this you’d need to create you own JavaScript to handle the hiding/showing of a field. There isn’t much in the way of information on how to accomplish something like this. The only information on adding custom JS is here https://www.advancedcustomfields.com/resources/adding-custom-javascript-fields/. I have posted some examples of doing some things with JS here that may get you started on how to detect changes in fields and modify other fields here https://github.com/Hube2/acf-dynamic-ajax-select-example
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 Cookie Policy. If you continue to use this site, you consent to our use of cookies.