Home › Forums › Front-end Issues › Javascript API: Set data-conditions manually? › Reply To: Javascript API: Set data-conditions manually?
Sounds like a great idea using the PHP filters. I’ll check for the correct implementation and post the code.
For the JS solution, I tried adding a condition from the browser inspector which doesn’t seem to work. So, I assume this needs to happen before the initialization.
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.