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. Mar 7 '17 at 8:01
  • Can you provide that as an answer so you can get credit.
    – Hellyar
    Mar 7 '17 at 18:51
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, privacy policy and cookie policy

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