Hi,
Long time ACF via PHP user moving some things over to JS where it makes sense. Is there a way to use acf.getfield to get the value from a field in an options page using purely JS? (not mixing PHP with JS)
acf.getField(‘field_123′,’option’) is not working, nor is it documented.
https://www.advancedcustomfields.com/resources/javascript-api/#functions-getfield
This would be useful in so many ways. Thank you.
The ACF JS API is only useful for getting values from field on the current admin page. It has no AJAX like capability to get fields on the front end of the site or from other pages.