<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Drilldown on text input in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/Drilldown-on-text-input/m-p/454139#M93972</link>
    <description>&lt;P&gt;i put in some data in a text input and press enter, can i link it to another dashboard upon pressing enter key ?&lt;BR /&gt;
basically drilldown from text input + press enter key&lt;/P&gt;

&lt;P&gt;i am able to drill down on clicks, but not on enter key.&lt;/P&gt;

&lt;P&gt;or any other way of achieving this ?&lt;/P&gt;</description>
    <pubDate>Mon, 29 Oct 2018 07:45:29 GMT</pubDate>
    <dc:creator>jiaqya</dc:creator>
    <dc:date>2018-10-29T07:45:29Z</dc:date>
    <item>
      <title>Drilldown on text input</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Drilldown-on-text-input/m-p/454139#M93972</link>
      <description>&lt;P&gt;i put in some data in a text input and press enter, can i link it to another dashboard upon pressing enter key ?&lt;BR /&gt;
basically drilldown from text input + press enter key&lt;/P&gt;

&lt;P&gt;i am able to drill down on clicks, but not on enter key.&lt;/P&gt;

&lt;P&gt;or any other way of achieving this ?&lt;/P&gt;</description>
      <pubDate>Mon, 29 Oct 2018 07:45:29 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Drilldown-on-text-input/m-p/454139#M93972</guid>
      <dc:creator>jiaqya</dc:creator>
      <dc:date>2018-10-29T07:45:29Z</dc:date>
    </item>
    <item>
      <title>Re: Drilldown on text input</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Drilldown-on-text-input/m-p/454140#M93973</link>
      <description>&lt;P&gt;Hi @jiaqya &lt;/P&gt;

&lt;P&gt;Can you please try this example? This code will open a google with search parameter passed in the text box.&lt;/P&gt;

&lt;P&gt;test.xml&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;&amp;lt;form script="test.js"&amp;gt;
  &amp;lt;label&amp;gt;dashboard test&amp;lt;/label&amp;gt;
  &amp;lt;fieldset submitButton="false"&amp;gt;
    &amp;lt;input type="text" token="searchTxt" id="searchTxt_id"&amp;gt;
      &amp;lt;label&amp;gt;field1&amp;lt;/label&amp;gt;
    &amp;lt;/input&amp;gt;
  &amp;lt;/fieldset&amp;gt;
&amp;lt;/form&amp;gt;
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;test.js&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;require(["jquery", "splunkjs/mvc","splunkjs/mvc/utils","splunkjs/mvc/simplexml/ready!"], function($, mvc, utils) {

$(document).ready(function() {
    $($('input[id^="searchTxt_id_"]')[0]).keypress(function (event) {
        var key = (event.keyCode ? event.keyCode : event.which);
        if(key == 13)  // the enter key code
        {
            utils.redirect("https://www.google.com/search?q="+$($('input[id^="searchTxt_id_"]')[0]).val()
,"_blank");
            return false;  
        }
    });
});
});
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Thu, 01 Nov 2018 14:43:40 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Drilldown-on-text-input/m-p/454140#M93973</guid>
      <dc:creator>kamlesh_vaghela</dc:creator>
      <dc:date>2018-11-01T14:43:40Z</dc:date>
    </item>
    <item>
      <title>Re: Drilldown on text input</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Drilldown-on-text-input/m-p/454141#M93974</link>
      <description>&lt;P&gt;this works as expected&lt;/P&gt;</description>
      <pubDate>Tue, 13 Nov 2018 05:10:04 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Drilldown-on-text-input/m-p/454141#M93974</guid>
      <dc:creator>jiaqya</dc:creator>
      <dc:date>2018-11-13T05:10:04Z</dc:date>
    </item>
  </channel>
</rss>

