carbon-fields
carbon-fields copied to clipboard
Is it possible to use the API on the frontend to get the value
Version
- Carbon Fields: 3.3.4
- WordPress: 6.1
- PHP: 7,4
Expected Behavior
Is it possible to use the API on the frontend to get the value of a specific field on the current page?
The goal is to load this value dynamically through ajax inside a modal, after the page is already loaded.
Actual Behavior
There isn't, as I didn't find anything in the documentation about it and it's not clear if it's possible or not.
Will this help you? https://docs.carbonfields.net/learn/advanced-topics/javascript-api.html
Not triggering $(document).on('carbonFields.apiLoaded'...
Maybe this will be useful: https://github.com/htmlburger/carbon-fields/issues/979