Home › Forums › Backend Issues (wp-admin) › Load dynamically fields on select change › Reply To: Load dynamically fields on select change
Hi @jepser
You can view the console log to see if your cpt_template data is being sent in the AJAX request.
There are 3 parts to the PHP code. You have shown the first; adding the rule choice, but have you added the code to select a rule value? And have you written the logic to do the comparing and return true / false?
All is explained in this tutorial:
http://www.advancedcustomfields.com/resources/tutorials/custom-location-rules/
Thanks
E
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.