1 Reply Latest reply on Mar 8, 2017 3:58 PM by diego.medrano

    How do I use the API to Respond to a Selection and Output a Specific Value to my Page?

    Stephen Hellyar

      I want to use the API to pass a specific value (countryName) when the country is selected on a map worksheet.  


      To keep it simple, I started with the script from the Respond to Events example. 


      I need the output to write within my html document - but inserted into a PHP line for my CMS. 


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


      Literally, how would you modify the reportSelectedMarks(marks) function below to do just that?  Or, an alternative solution. 

      Ember Library Mediator.png