Hi,
We are using the ACF plugin, but we are also hacking wp-admin to add functionality via our own plugins, some of which involves populating select boxes via AJAX based on user choices. Normally this wouldn’t present a problem; simply get the ID of the select box and…
$("#acf-field-something").html("<some valid HTML gotten via AJAX>");
… but this doesn’t work, either with test strings or real data. The console reports an error coming from the ACF plugin:
TypeError: e is undefined
…}t.find(“.title h4″).text(acf.l10n.google_map.locating+”…”);t.addClass(“active…
I’m not sure if this is a bug or if I’ve missed some detail of the plugin or something but any help would be much appreciated!
Cheers,
J.R.
Hi @Nicetechnology
Can you use firebug to determine which element is selected by $("#acf-field-something")
?
Perhaps it is also selecting a google map field, which is then causing the error when ACF can’t find expected DOM elements.
Thanks
E