Home › Forums › Front-end Issues › Javascript API: Set data-conditions manually? › Reply To: Javascript API: Set data-conditions manually?
Basically, what I do is I create a field group with a similar set of fields and use the export to PHP to see how the conditional logic should look. Then you just have to replace the field key with the key of the field you actually want to use. This can’t be done when building a field, but like I said, any field that exists on the same page will do the trick, even if it is in a different group. Or it did the last time I tried it.
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.