Home › Forums › Backend Issues (wp-admin) › Custom location rules – JS part › Reply To: Custom location rules – JS part
So, I looked at this when you posted it and it got me thinking that it would be really useful. I’ve done a lot of stuff with ACF but the JS part has pretty much been a mystery to me.
Then today I had some time to kill and I started playing with an idea. After nearly 10 hours of coding and digging through code I’ve created a little plugin that can be used to have field groups located somewhere based on field in other field groups on the same location.
I’m not sure if this is the way it should be done, but it seems to be working. Not sure how far I’m willing to take it.
There isn’t any documentation yet, honestly I don’t know if it’s completely working. Basically you need to create a field group that has a select, checkbox, radio or true/false field in it. Then when you create a new field group you can base the location on the fields in the other group on the same post.
If you have some time I’d love to hear any thoughts on it https://github.com/Hube2/acf-custom-field-locations-rule
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.