carbon-fields icon indicating copy to clipboard operation
carbon-fields copied to clipboard

Is it possible to use the API on the frontend to get the value

Open marceloberwanger opened this issue 2 years ago • 3 comments

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.

marceloberwanger avatar May 31 '23 16:05 marceloberwanger

Will this help you? https://docs.carbonfields.net/learn/advanced-topics/javascript-api.html

Ryvix avatar Jun 02 '23 20:06 Ryvix

Not triggering $(document).on('carbonFields.apiLoaded'...

albreis avatar Jun 14 '23 17:06 albreis

Maybe this will be useful: https://github.com/htmlburger/carbon-fields/issues/979

Ryvix avatar Jun 14 '23 17:06 Ryvix