<?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 Re: In a dashboard, how do I create a hyperlink that directs to text box? in Dashboards &amp; Visualizations</title>
    <link>https://community.splunk.com/t5/Dashboards-Visualizations/In-a-dashboard-how-do-I-create-a-hyperlink-that-directs-to-text/m-p/397827#M26043</link>
    <description>&lt;P&gt;Hey @nick405060 ,&lt;BR /&gt;
 just remove &lt;CODE&gt;console.log&lt;/CODE&gt;. it was for debugging purpose only &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt; &lt;/P&gt;</description>
    <pubDate>Tue, 09 Oct 2018 16:44:36 GMT</pubDate>
    <dc:creator>kamlesh_vaghela</dc:creator>
    <dc:date>2018-10-09T16:44:36Z</dc:date>
    <item>
      <title>In a dashboard, how do I create a hyperlink that directs to text box?</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/In-a-dashboard-how-do-I-create-a-hyperlink-that-directs-to-text/m-p/397814#M26030</link>
      <description>&lt;P&gt;Hi there,&lt;/P&gt;

&lt;P&gt;I have a dashboard with a text box in it. When I click on a hyperlink on the same dashboard, I want to be able to have the user be directed to the text box (have the form focus on that text box). How do I do this? Basically, I just need to figure out what WHAT_GOES_HERE is in the code below, or figure out another way to do this.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt; &amp;lt;form&amp;gt;

      &amp;lt;fieldset autoRun="True" submitButton="false"&amp;gt;
        &amp;lt;input type="text" token="equipment_lifecycle"&amp;gt;
          &amp;lt;label&amp;gt;Equipment Lifecycle (years)&amp;lt;/label&amp;gt;
          &amp;lt;default&amp;gt;1&amp;lt;/default&amp;gt;
        &amp;lt;/input&amp;gt;
      &amp;lt;/fieldset&amp;gt;

      &amp;lt;row&amp;gt;
        &amp;lt;panel&amp;gt;
          &amp;lt;html&amp;gt;
            &amp;lt;p&amp;gt;&amp;lt;b&amp;gt;some text&amp;lt;/b&amp;gt;&amp;lt;/p&amp;gt;
            &amp;lt;ul&amp;gt;     
              &amp;lt;li&amp;gt;
                &amp;lt;p&amp;gt;Equipment Lifecycle (Years): &amp;lt;a href="@go?=WHAT_GOES_HERE"&amp;gt;$equipment_lifecycle$&amp;lt;/a&amp;gt;&amp;lt;/p&amp;gt;
              &amp;lt;/li&amp;gt;
            &amp;lt;/ul&amp;gt;
          &amp;lt;/html&amp;gt;
        &amp;lt;/panel&amp;gt;
      &amp;lt;/row&amp;gt;

    &amp;lt;/form&amp;gt;
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Edit: eventually there will be more than one text box and more that one hyperlink&lt;/P&gt;</description>
      <pubDate>Tue, 29 Sep 2020 21:25:14 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/In-a-dashboard-how-do-I-create-a-hyperlink-that-directs-to-text/m-p/397814#M26030</guid>
      <dc:creator>nick405060</dc:creator>
      <dc:date>2020-09-29T21:25:14Z</dc:date>
    </item>
    <item>
      <title>Re: In a dashboard, how do I create a hyperlink that directs to text box?</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/In-a-dashboard-how-do-I-create-a-hyperlink-that-directs-to-text/m-p/397815#M26031</link>
      <description>&lt;P&gt;You can try this and let me know if this helps:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;&amp;lt;dashboard&amp;gt;
&amp;lt;row&amp;gt;
     &amp;lt;panel&amp;gt;
         &amp;lt;input type="text" token="field1" id="someid2"&amp;gt;
            &amp;lt;label&amp;gt;field1&amp;lt;/label&amp;gt;
          &amp;lt;/input&amp;gt;
     &amp;lt;/panel&amp;gt;
&amp;lt;/row&amp;gt;
&amp;lt;row&amp;gt;
    &amp;lt;panel&amp;gt;
      &amp;lt;html&amp;gt;
        &amp;lt;a href="#someid2"&amp;gt;         
          Just a link
        &amp;lt;/a&amp;gt;
      &amp;lt;/html&amp;gt;
    &amp;lt;/panel&amp;gt;
  &amp;lt;/row&amp;gt;
&amp;lt;/dashboard&amp;gt;
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 03 Oct 2018 14:11:47 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/In-a-dashboard-how-do-I-create-a-hyperlink-that-directs-to-text/m-p/397815#M26031</guid>
      <dc:creator>pramit46</dc:creator>
      <dc:date>2018-10-03T14:11:47Z</dc:date>
    </item>
    <item>
      <title>Re: In a dashboard, how do I create a hyperlink that directs to text box?</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/In-a-dashboard-how-do-I-create-a-hyperlink-that-directs-to-text/m-p/397816#M26032</link>
      <description>&lt;P&gt;@nick405060&lt;/P&gt;

&lt;P&gt;Can you please try this?&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;&amp;lt;form  script="my.js"&amp;gt;       
   &amp;lt;fieldset autoRun="True" submitButton="false"&amp;gt;
     &amp;lt;input type="text" token="equipment_lifecycle" id="equipment_lifecycle_id"&amp;gt;
       &amp;lt;label&amp;gt;Equipment Lifecycle (years)&amp;lt;/label&amp;gt;
       &amp;lt;default&amp;gt;1&amp;lt;/default&amp;gt;
     &amp;lt;/input&amp;gt;
   &amp;lt;/fieldset&amp;gt;

   &amp;lt;row&amp;gt;
     &amp;lt;panel&amp;gt;
       &amp;lt;html&amp;gt;
         &amp;lt;p&amp;gt;&amp;lt;b&amp;gt;some text&amp;lt;/b&amp;gt;&amp;lt;/p&amp;gt;
         &amp;lt;ul&amp;gt;     
           &amp;lt;li&amp;gt;
             &amp;lt;p&amp;gt;Equipment Lifecycle (Years): &amp;lt;a id="equipment_lifecycle_link" href="#equipment_lifecycle_id"&amp;gt;$equipment_lifecycle$&amp;lt;/a&amp;gt;&amp;lt;/p&amp;gt;
           &amp;lt;/li&amp;gt;
         &amp;lt;/ul&amp;gt;
       &amp;lt;/html&amp;gt;
     &amp;lt;/panel&amp;gt;
   &amp;lt;/row&amp;gt;
 &amp;lt;/form&amp;gt;
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;my.js&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;require(["jquery", "splunkjs/mvc", "splunkjs/mvc/simplexml/ready!"], function($, mvc) {
    $('#equipment_lifecycle_link').click(function(evt) {
        evt.preventDefault();
        $($('input[id^="equipment_lifecycle_id_"]')[0]).focus()
        return false;
    });

});
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Wed, 03 Oct 2018 16:00:36 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/In-a-dashboard-how-do-I-create-a-hyperlink-that-directs-to-text/m-p/397816#M26032</guid>
      <dc:creator>kamlesh_vaghela</dc:creator>
      <dc:date>2018-10-03T16:00:36Z</dc:date>
    </item>
    <item>
      <title>Re: In a dashboard, how do I create a hyperlink that directs to text box?</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/In-a-dashboard-how-do-I-create-a-hyperlink-that-directs-to-text/m-p/397817#M26033</link>
      <description>&lt;P&gt;hi @nick405060&lt;/P&gt;

&lt;P&gt;Did either of the answers below solve your problem? If so, please resolve this post by approving one of them! &lt;BR /&gt;
If your problem is still not solved, keep us updated so that someone else can help ya. Thanks for posting!&lt;/P&gt;</description>
      <pubDate>Wed, 03 Oct 2018 16:05:37 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/In-a-dashboard-how-do-I-create-a-hyperlink-that-directs-to-text/m-p/397817#M26033</guid>
      <dc:creator>mstjohn_splunk</dc:creator>
      <dc:date>2018-10-03T16:05:37Z</dc:date>
    </item>
    <item>
      <title>Re: In a dashboard, how do I create a hyperlink that directs to text box?</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/In-a-dashboard-how-do-I-create-a-hyperlink-that-directs-to-text/m-p/397818#M26034</link>
      <description>&lt;P&gt;Close, but all this does it move my scrolling on the page so that the object is at the top of the page. I'd like it to focus on the object (have the textbox turn blue and have the cursor be in it, like if you click in it)&lt;/P&gt;</description>
      <pubDate>Wed, 03 Oct 2018 18:39:25 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/In-a-dashboard-how-do-I-create-a-hyperlink-that-directs-to-text/m-p/397818#M26034</guid>
      <dc:creator>nick405060</dc:creator>
      <dc:date>2018-10-03T18:39:25Z</dc:date>
    </item>
    <item>
      <title>Re: In a dashboard, how do I create a hyperlink that directs to text box?</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/In-a-dashboard-how-do-I-create-a-hyperlink-that-directs-to-text/m-p/397819#M26035</link>
      <description>&lt;P&gt;Not yet, will resolve once solved.&lt;/P&gt;</description>
      <pubDate>Wed, 03 Oct 2018 18:53:33 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/In-a-dashboard-how-do-I-create-a-hyperlink-that-directs-to-text/m-p/397819#M26035</guid>
      <dc:creator>nick405060</dc:creator>
      <dc:date>2018-10-03T18:53:33Z</dc:date>
    </item>
    <item>
      <title>Re: In a dashboard, how do I create a hyperlink that directs to text box?</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/In-a-dashboard-how-do-I-create-a-hyperlink-that-directs-to-text/m-p/397820#M26036</link>
      <description>&lt;P&gt;Tried this, no luck. I placed the javascript file in my etc/apps/myapp/appserver/static directory, but had to mkdir the appserver and static directory. I also tried it with and without the last _ in &lt;CODE&gt;$($('input[id^="equipment_lifecycle_id_"]')[0]).focus()&lt;/CODE&gt; but that didn't change anything. Restarted splunk after every change.&lt;/P&gt;

&lt;P&gt;Tried with the js file in etc/apps/search/appserver/static as well, both with and without that _&lt;/P&gt;

&lt;P&gt;Tried doing  &lt;CODE&gt;&amp;lt;form script="search:my.js"&amp;gt;&lt;/CODE&gt;  as well&lt;/P&gt;</description>
      <pubDate>Wed, 03 Oct 2018 19:10:14 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/In-a-dashboard-how-do-I-create-a-hyperlink-that-directs-to-text/m-p/397820#M26036</guid>
      <dc:creator>nick405060</dc:creator>
      <dc:date>2018-10-03T19:10:14Z</dc:date>
    </item>
    <item>
      <title>Re: In a dashboard, how do I create a hyperlink that directs to text box?</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/In-a-dashboard-how-do-I-create-a-hyperlink-that-directs-to-text/m-p/397821#M26037</link>
      <description>&lt;P&gt;Can you please share your sample XML and js file?&lt;/P&gt;</description>
      <pubDate>Fri, 05 Oct 2018 03:44:07 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/In-a-dashboard-how-do-I-create-a-hyperlink-that-directs-to-text/m-p/397821#M26037</guid>
      <dc:creator>kamlesh_vaghela</dc:creator>
      <dc:date>2018-10-05T03:44:07Z</dc:date>
    </item>
    <item>
      <title>Re: In a dashboard, how do I create a hyperlink that directs to text box?</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/In-a-dashboard-how-do-I-create-a-hyperlink-that-directs-to-text/m-p/397822#M26038</link>
      <description>&lt;P&gt;@nick405060 please add more details on the Text Box and HyperLink. Is it Splunk Text box input? Also is the Hyper Link Splunk's Link input or something else?&lt;/P&gt;

&lt;P&gt;If the hyperlink is HTML element link anchor tag, you would need to know jQuery and SplunkJS Stack to pass on the token value. Refer to Splunk Blog by @Jconger on using HTML5 inputs in Splunk dashboard using Simple XML JS extension: &lt;A href="https://www.splunk.com/blog/2016/09/21/using-html5-input-types-on-splunk-forms.html"&gt;https://www.splunk.com/blog/2016/09/21/using-html5-input-types-on-splunk-forms.html&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;If they are both Splunk inputs then you can try the following run anywhere example in Simple XML. PS: Dont bother about the Dark Theme, I was trying out 7.2 ;). Simple XML code does not have &lt;CODE&gt;Splunk Enterprise 7.2 dark theme dependency&lt;/CODE&gt;, as I have removed &lt;CODE&gt;theme="dark"&lt;/CODE&gt; from the root &lt;CODE&gt;&amp;lt;form&amp;gt;&lt;/CODE&gt; node.&lt;/P&gt;

&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="alt text"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/5847i2F46B77E3597AAE4/image-size/large?v=v2&amp;amp;px=999" role="button" title="alt text" alt="alt text" /&gt;&lt;/span&gt;&lt;/P&gt;

&lt;P&gt;Following is the Simple XML code for run anywhere example in the screenshot above. On click of &lt;CODE&gt;Click Me&lt;/CODE&gt; link the &lt;CODE&gt;Text Box&lt;/CODE&gt; value is changed to &lt;CODE&gt;clicked&lt;/CODE&gt;&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;&amp;lt;form&amp;gt;
  &amp;lt;label&amp;gt;Set Focus on Text Box based on Hyperlink Clicked&amp;lt;/label&amp;gt;
  &amp;lt;fieldset submitButton="false"&amp;gt;&amp;lt;/fieldset&amp;gt;
  &amp;lt;row&amp;gt;
    &amp;lt;panel&amp;gt;
      &amp;lt;input type="text" token="tokText" searchWhenChanged="false"&amp;gt;
        &amp;lt;label&amp;gt;Text Box&amp;lt;/label&amp;gt;
      &amp;lt;/input&amp;gt;
      &amp;lt;input type="link" token="tokLink" searchWhenChanged="true"&amp;gt;
        &amp;lt;label&amp;gt;&amp;lt;/label&amp;gt;
        &amp;lt;choice value="clicked"&amp;gt;Click Me&amp;lt;/choice&amp;gt;
        &amp;lt;change&amp;gt;
          &amp;lt;condition value="clicked"&amp;gt;
            &amp;lt;set token="form.tokText"&amp;gt;$value$&amp;lt;/set&amp;gt;
            &amp;lt;unset token="form.tokLink"&amp;gt;&amp;lt;/unset&amp;gt;
          &amp;lt;/condition&amp;gt;
        &amp;lt;/change&amp;gt;
      &amp;lt;/input&amp;gt;
      &amp;lt;html&amp;gt;
        &amp;lt;div&amp;gt;form.tokLink: $form.tokLink$&amp;lt;/div&amp;gt;
        &amp;lt;div&amp;gt;form.tokText: $form.tokText$&amp;lt;/div&amp;gt;
      &amp;lt;/html&amp;gt;
    &amp;lt;/panel&amp;gt;
  &amp;lt;/row&amp;gt;
&amp;lt;/form&amp;gt;
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Fri, 05 Oct 2018 20:26:22 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/In-a-dashboard-how-do-I-create-a-hyperlink-that-directs-to-text/m-p/397822#M26038</guid>
      <dc:creator>niketn</dc:creator>
      <dc:date>2018-10-05T20:26:22Z</dc:date>
    </item>
    <item>
      <title>Re: In a dashboard, how do I create a hyperlink that directs to text box?</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/In-a-dashboard-how-do-I-create-a-hyperlink-that-directs-to-text/m-p/397823#M26039</link>
      <description>&lt;P&gt;Let it be known to the world that @kamlesh_vaghela spent 5 hours with me on this, and stayed up till 4am on a weekend to help me out. Best. Person.&lt;/P&gt;</description>
      <pubDate>Fri, 05 Oct 2018 22:30:36 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/In-a-dashboard-how-do-I-create-a-hyperlink-that-directs-to-text/m-p/397823#M26039</guid>
      <dc:creator>nick405060</dc:creator>
      <dc:date>2018-10-05T22:30:36Z</dc:date>
    </item>
    <item>
      <title>Re: In a dashboard, how do I create a hyperlink that directs to text box?</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/In-a-dashboard-how-do-I-create-a-hyperlink-that-directs-to-text/m-p/397824#M26040</link>
      <description>&lt;P&gt;@nick405060&lt;BR /&gt;&lt;BR /&gt;
Glad to help you &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt; &lt;/P&gt;</description>
      <pubDate>Fri, 05 Oct 2018 22:33:05 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/In-a-dashboard-how-do-I-create-a-hyperlink-that-directs-to-text/m-p/397824#M26040</guid>
      <dc:creator>kamlesh_vaghela</dc:creator>
      <dc:date>2018-10-05T22:33:05Z</dc:date>
    </item>
    <item>
      <title>Re: In a dashboard, how do I create a hyperlink that directs to text box?</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/In-a-dashboard-how-do-I-create-a-hyperlink-that-directs-to-text/m-p/397825#M26041</link>
      <description>&lt;P&gt;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/114183"&gt;@nick405060&lt;/a&gt; Last week the world got to know at Splunk .Conf 2018 that &lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/127939"&gt;@kamlesh_vaghela&lt;/a&gt; is one of the the best when he got inducted as a Splunk Trust member for "his passion for the amazing Splunk community" and "his Splunk-fu" &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;

&lt;P&gt;&lt;A href="https://www.splunk.com/blog/2018/10/01/we-proudly-announce-the-splunktrust-2019-membership.html" target="_blank"&gt;https://www.splunk.com/blog/2018/10/01/we-proudly-announce-the-splunktrust-2019-membership.html&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/188962"&gt;@ppablo&lt;/a&gt;_splunk &lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/130946"&gt;@mstjohn_splunk&lt;/a&gt; &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 29 Sep 2020 21:33:51 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/In-a-dashboard-how-do-I-create-a-hyperlink-that-directs-to-text/m-p/397825#M26041</guid>
      <dc:creator>niketn</dc:creator>
      <dc:date>2020-09-29T21:33:51Z</dc:date>
    </item>
    <item>
      <title>Re: In a dashboard, how do I create a hyperlink that directs to text box?</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/In-a-dashboard-how-do-I-create-a-hyperlink-that-directs-to-text/m-p/397826#M26042</link>
      <description>&lt;P&gt;This is the working .js code for Splunk 6.3 (the answer):&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;require(["jquery", "splunkjs/mvc/simplexml/ready!",'splunkjs/ready!'], function($) {
    console.log($);
    console.log(this);
    $(document).ready(function(){
        console.log($('#equipment_lifecycle_link'));
        console.log($($('input[id^="equipment_lifecycle_id_"]')[0]));
        setTimeout(function () {
            $('#equipment_lifecycle_link').click(function() {
                console.log("In function");
                console.log($($('input[id^="equipment_lifecycle_id_"]')[0]));
                $($('input[id^="equipment_lifecycle_id_"]')[0]).focus();
                return false;
            });
            console.log("11111");
        }, 5000);
    })
});
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 09 Oct 2018 16:41:30 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/In-a-dashboard-how-do-I-create-a-hyperlink-that-directs-to-text/m-p/397826#M26042</guid>
      <dc:creator>nick405060</dc:creator>
      <dc:date>2018-10-09T16:41:30Z</dc:date>
    </item>
    <item>
      <title>Re: In a dashboard, how do I create a hyperlink that directs to text box?</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/In-a-dashboard-how-do-I-create-a-hyperlink-that-directs-to-text/m-p/397827#M26043</link>
      <description>&lt;P&gt;Hey @nick405060 ,&lt;BR /&gt;
 just remove &lt;CODE&gt;console.log&lt;/CODE&gt;. it was for debugging purpose only &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt; &lt;/P&gt;</description>
      <pubDate>Tue, 09 Oct 2018 16:44:36 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/In-a-dashboard-how-do-I-create-a-hyperlink-that-directs-to-text/m-p/397827#M26043</guid>
      <dc:creator>kamlesh_vaghela</dc:creator>
      <dc:date>2018-10-09T16:44:36Z</dc:date>
    </item>
    <item>
      <title>Re: In a dashboard, how do I create a hyperlink that directs to text box?</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/In-a-dashboard-how-do-I-create-a-hyperlink-that-directs-to-text/m-p/397828#M26044</link>
      <description>&lt;P&gt;@kamlesh_vaghela Any quick advice on the changes I have to make doing this in Splunk 7.x? Copied my SimpleXML and js file over from our Windows 6.3 environment to our Ubuntu 7.2 environment exactly, js file successfully loads (when I add sourceURL at the bottom), redirection works the first click (without focusing) and then successive clicks neither redirect nor focus. No error message in console.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;require(["jquery", "splunkjs/mvc/simplexml/ready!",'splunkjs/ready!'], function($) {
    $(document).ready(function(){

        setTimeout(function () {
            $('#b4_link').click(function() {
                $($('input[id^="b4_"]')[0]).focus();
                return false;
            });
        }, 5000);

    })
});
//# sourceURL=focus.js
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;and&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;&amp;lt;form script="myapp:focus.js"&amp;gt;
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Mon, 10 Dec 2018 19:40:53 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/In-a-dashboard-how-do-I-create-a-hyperlink-that-directs-to-text/m-p/397828#M26044</guid>
      <dc:creator>nick405060</dc:creator>
      <dc:date>2018-12-10T19:40:53Z</dc:date>
    </item>
    <item>
      <title>Re: In a dashboard, how do I create a hyperlink that directs to text box?</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/In-a-dashboard-how-do-I-create-a-hyperlink-that-directs-to-text/m-p/397829#M26045</link>
      <description>&lt;P&gt;@nick405060 &lt;/P&gt;

&lt;P&gt;Can please verify all the IDs which are used in our JS.&lt;/P&gt;

&lt;P&gt;Did you get any output from below consoles?&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;console.log($('#equipment_lifecycle_link'));
console.log($($('input[id^="equipment_lifecycle_id_"]')[0])); 
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;With the 7.x version, i think don't required &lt;CODE&gt;setTimeout&lt;/CODE&gt;.&lt;/P&gt;

&lt;P&gt;So keep out below code from &lt;CODE&gt;settimeout&lt;/CODE&gt;;&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;         $('#b4_link').click(function() {
             $($('input[id^="b4_"]')[0]).focus();
             return false;
         });
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 11 Dec 2018 07:38:43 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/In-a-dashboard-how-do-I-create-a-hyperlink-that-directs-to-text/m-p/397829#M26045</guid>
      <dc:creator>kamlesh_vaghela</dc:creator>
      <dc:date>2018-12-11T07:38:43Z</dc:date>
    </item>
    <item>
      <title>Re: In a dashboard, how do I create a hyperlink that directs to text box?</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/In-a-dashboard-how-do-I-create-a-hyperlink-that-directs-to-text/m-p/397830#M26046</link>
      <description>&lt;P&gt;I'm not entirely sure what you mean by "keep out the below code". Here, I'll try to be as verbose as possible describing what is happening. In my Splunk 7.2 instance, I have the dashboard from before:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;&amp;lt;form  script="MYAPP:focus.js"&amp;gt;       
    &amp;lt;fieldset autoRun="True" submitButton="false"&amp;gt;
      &amp;lt;input type="text" token="equipment_lifecycle" id="equipment_lifecycle_id"&amp;gt;
        &amp;lt;label&amp;gt;Equipment Lifecycle (years)&amp;lt;/label&amp;gt;
        &amp;lt;default&amp;gt;1&amp;lt;/default&amp;gt;
      &amp;lt;/input&amp;gt;
    &amp;lt;/fieldset&amp;gt;

    &amp;lt;row&amp;gt;
      &amp;lt;panel&amp;gt;
        &amp;lt;html&amp;gt;
          &amp;lt;p&amp;gt;&amp;lt;b&amp;gt;some text&amp;lt;/b&amp;gt;&amp;lt;/p&amp;gt;
          &amp;lt;ul&amp;gt;     
            &amp;lt;li&amp;gt;
              &amp;lt;p&amp;gt;Equipment Lifecycle (Years): &amp;lt;a id="equipment_lifecycle_link" href="#equipment_lifecycle_id"&amp;gt;$equipment_lifecycle$&amp;lt;/a&amp;gt;&amp;lt;/p&amp;gt;
            &amp;lt;/li&amp;gt;
          &amp;lt;/ul&amp;gt;
        &amp;lt;/html&amp;gt;
      &amp;lt;/panel&amp;gt;
    &amp;lt;/row&amp;gt;
  &amp;lt;/form&amp;gt;
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;And I created this focus.js, bumped, and refreshed:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;require(["jquery", "splunkjs/mvc", "splunkjs/mvc/simplexml/ready!"], function($, mvc) {
    $('#equipment_lifecycle_link').click(function(evt) {
        evt.preventDefault();
        $($('input[id^="equipment_lifecycle_id_"]')[0]).focus()
        return false;
    });

});

console.log($('#equipment_lifecycle_link'));
console.log($($('input[id^="equipment_lifecycle_id_"]')[0]));

//# sourceURL=focus.js
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;With these console results:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;focus.js:14 jQuery.fn.init&amp;nbsp;[a#equipment_lifecycle_link, context: document, selector: "#equipment_lifecycle_link"]
focus.js:15 jQuery.fn.init&amp;nbsp;{}
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;And clicking does not focus. I also tried with this focus.js:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;require(["jquery", "splunkjs/mvc/simplexml/ready!",'splunkjs/ready!'], function($) {
    $(document).ready(function(){
        console.log($('#equipment_lifecycle_link'));
        console.log($($('input[id^="equipment_lifecycle_id_"]')[0]));
        setTimeout(function () {
            $('#equipment_lifecycle_link').click(function() {
                $($('input[id^="equipment_lifecycle_id_"]')[0]).focus();
                return false;
            });
        }, 5000);
    })
});

console.log("end")

//# sourceURL=focus.js
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;With these printouts&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;focus.js:18 end
focus.js:7 jQuery.fn.init&amp;nbsp;[a#equipment_lifecycle_link, context: document, selector: "#equipment_lifecycle_link"]
focus.js:8 jQuery.fn.init&amp;nbsp;{}
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;And no focusing. With this last focus.js I also tried with setTimeout removed as you suggested, with no luck.&lt;/P&gt;</description>
      <pubDate>Tue, 15 Jan 2019 18:25:03 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/In-a-dashboard-how-do-I-create-a-hyperlink-that-directs-to-text/m-p/397830#M26046</guid>
      <dc:creator>nick405060</dc:creator>
      <dc:date>2019-01-15T18:25:03Z</dc:date>
    </item>
  </channel>
</rss>

