Support

Account

Forum Replies Created

  • I had hoped acf.doAction('refresh'); $(window).trigger('acfrefresh'); from acf-input.js might work, but it doesn’t seem to have any effect. Whatever gets called on change of .categorychecklist for the built in taxonomy sidebar panels does trigger a new location and swaps field groups in/out, but I’ve been unable to track down exactly what it’s triggering to accomplish this.

    For my particular use case, I’m going to be able to abandon the custom locations I had built and instead use post taxonomy locations built into ACF, so I’ll fortunately be able to bypass my issues. It still would be great though to know how to refresh the location using the new API for future projects where I need custom locations.

  • Is this still doable in 2020? acf.ajax.extend doesn’t exist, but acf.Model or acf.Field might be the ticket; however after either of those fire, this.update('custom_template_type', page_template).fetch(); no longer triggers an update as it used to. How do I let ACF know via JavaScript that the location has changed, so it needs to re-check what field groups to show based on that location?

Viewing 2 posts - 1 through 2 (of 2 total)