Answers.Body: <p>You can't.</p>
  
  <p>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.</p>
  
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2017-03-07T18:59:40.380Z
Answers.LastActivityDate: 2017-03-07T18:59:40.380Z
Answers.UserDisplayName: Stephen Lewis
Body: <p>This might be a stretch.  </p>
  
  <p>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?</p>
  
  <p>{% set results = craft.entries.section('posts').search('countryName:"<strong>Value Goes Here</strong>"') %}</p>
  
  <p><a href="https://i.sstatic.net/l3ONW.png" rel="nofollow noreferrer"><img src="https://i.sstatic.net/l3ONW.png" alt="enter image description here"></a></p>
  
Comments.ContentLicense: CC BY-SA 3.0
Comments.CreationDate: 2017-03-07T08:01:42.223Z
Comments.Text: 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.
Comments.UserDisplayName: Stephen Lewis
Comments.ContentLicense: CC BY-SA 3.0
Comments.CreationDate: 2017-03-07T18:51:43.063Z
Comments.Text: Can you provide that as an answer so you can get credit.
Comments.UserDisplayName: Hellyar
Tags: <templating>
Title: How do I add input a value to a Craft/Twig request?
ThreadText: # How do I add input a value to a Craft/Twig request?
  
  (Asked by: username_0 on 2017-03-06)
  
  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](https://i.sstatic.net/l3ONW.png)](https://i.sstatic.net/l3ONW.png)
  
  **Tags:** templating
  
  > **Comments:**
  > **username_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.  
  > **username_0**: Can you provide that as an answer so you can get credit.  
  
  ---
  
  ## 1 answers
  
  ### Answer by username_1 on 2017-03-07. Score: 1 | Accepted answer
  
  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.
  
  
  ---
  
  