1

This might be a stretch.

How do I (literally) modify the (Tableau API) javascript function below to print a specific fieldName ("Country") so that it can place the "Country" into the CraftCMS/Twig request below?

{% set results = craft.entries.section('posts').search('countryName:"Value Goes Here"') %}

enter image description here

2
  • You can't. The Craft / Twig code runs server-side, before the page is delivered to the browser. The JavaScript runs client side, after the page is delivered to the browser. Commented Mar 7, 2017 at 8:01
  • Can you provide that as an answer so you can get credit.
    – Hellyar
    Commented Mar 7, 2017 at 18:51

1 Answer 1

1

You can't.

The Craft / Twig code runs server-side, before the page is delivered to the browser. The JavaScript runs client side, after the page is delivered to the browser.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.