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