Skip to main content
edited tags
Link
mierla
  • 43
  • 1
  • 8
Source Link
mierla
  • 43
  • 1
  • 8

How can I pass a JS result into a Twig template?

I've got a frontend form which queries the openstates.org API to return a given set of data objects.

Those objects also exist in Craft as entries, and the API data includes a field that serves as a unique ID for the Craft entries - how can I pass those unique IDs back to the Craft template to retrieve the corresponding entries?