<?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: Access a drop-down field value in javascript in Splunk Dev</title>
    <link>https://community.splunk.com/t5/Splunk-Dev/Access-a-drop-down-field-value-in-javascript/m-p/335436#M5013</link>
    <description>&lt;P&gt;@niketnilay Thank you for your reply.&lt;/P&gt;

&lt;P&gt;My purpose is to have a required field validation on this dropdown. If the user doesn't select anything from the dropdown and clicks on the submit button, he should get an alert. &lt;/P&gt;

&lt;P&gt;I couldn't find any functionality to do this on Simple XML (my javascript code doesn't run in Simple XML), hence I created a HTML dashboard.&lt;/P&gt;

&lt;P&gt;I am trying to do exactly what you demonstrated with the tool tip example, but is there a way the tool tip can be replaced with a pop up alert box?&lt;/P&gt;</description>
    <pubDate>Thu, 27 Jul 2017 22:18:39 GMT</pubDate>
    <dc:creator>nisha_kapoor</dc:creator>
    <dc:date>2017-07-27T22:18:39Z</dc:date>
    <item>
      <title>Access a drop-down field value in javascript</title>
      <link>https://community.splunk.com/t5/Splunk-Dev/Access-a-drop-down-field-value-in-javascript/m-p/335434#M5011</link>
      <description>&lt;P&gt;I have a dashboard with a dropdown. I want to validate that the user has selected a value for this dropdown. If not, I want an alert to display. Where exactly do I paste the javascript code for this?&lt;/P&gt;

&lt;P&gt;I tired converting my dashboard to HTML and used this Javascript code. (I haven't included the entire dashboard code in the interest of readability, please let me know if you want me to paste the entire code)&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;&amp;lt;!DOCTYPE html&amp;gt;
&amp;lt;html lang="en"&amp;gt;
&amp;lt;head&amp;gt;
&amp;lt;script&amp;gt; 
     function validateForm() {
       var x = document.getElementById("input1").value;
     alert("Your field is "+x);
       }
    &amp;lt;/script&amp;gt;
&amp;lt;/head&amp;gt;
&amp;lt;body&amp;gt;
    &amp;lt;!-- 
    BEGIN LAYOUT
    This section contains the layout for the dashboard. Splunk uses proprietary
    styles in &amp;lt;div&amp;gt; tags, similar to Bootstrap's grid system. 
    --&amp;gt;
    &amp;lt;div class="fieldset"&amp;gt;
            &amp;lt;div class="input input-dropdown" id="input1"&amp;gt;
                &amp;lt;label&amp;gt;College&amp;lt;/label&amp;gt;
              &amp;lt;button type="button" onclick="validateForm()"&amp;gt;Try it&amp;lt;/button&amp;gt;
            &amp;lt;/div&amp;gt;
     &amp;lt;/div&amp;gt;
&amp;lt;/body&amp;gt;
&amp;lt;/html&amp;gt;
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;But no matter what value I select in the drop-down, the alert displays "Your field is undefined". &lt;/P&gt;

&lt;P&gt;To make things clear, I have you two name-value options in my drop-down, USC and UCSD. The initial and default values are set to blank.&lt;/P&gt;

&lt;P&gt;Thanks in advance. &lt;/P&gt;</description>
      <pubDate>Thu, 27 Jul 2017 18:51:38 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Dev/Access-a-drop-down-field-value-in-javascript/m-p/335434#M5011</guid>
      <dc:creator>nisha_kapoor</dc:creator>
      <dc:date>2017-07-27T18:51:38Z</dc:date>
    </item>
    <item>
      <title>Re: Access a drop-down field value in javascript</title>
      <link>https://community.splunk.com/t5/Splunk-Dev/Access-a-drop-down-field-value-in-javascript/m-p/335435#M5012</link>
      <description>&lt;P&gt;@nisha_kapoor, can you please describe the purpose for validation of No Value Selected by the User, when the Dashboard loads without any value for the Dropdown in the first place?&lt;/P&gt;

&lt;P&gt;Also any specific reason for JavaScript/alert and also HTML Dashboard?&lt;/P&gt;

&lt;P&gt;Can the following Simple XML dashboard with HTML Tooltop suffice your needs? It displays &lt;CODE&gt;Tooltip Text: No Value Selected&lt;/CODE&gt; when Dashboard Dropdown is empty.&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/3276iF07181409672C27F/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;PRE&gt;&lt;CODE&gt;  &amp;lt;row&amp;gt;
    &amp;lt;panel&amp;gt;
      &amp;lt;input type="dropdown" token="input1" searchWhenChanged="true"&amp;gt;
        &amp;lt;label&amp;gt;College&amp;lt;/label&amp;gt;
        &amp;lt;choice value="abc"&amp;gt;ABC&amp;lt;/choice&amp;gt;
        &amp;lt;choice value="def"&amp;gt;DEF&amp;lt;/choice&amp;gt;
        &amp;lt;change&amp;gt;
          &amp;lt;condition match="isnull($value$)"&amp;gt;
            &amp;lt;set token="tokAlert"&amp;gt;No Value Selected&amp;lt;/set&amp;gt;
          &amp;lt;/condition&amp;gt;
          &amp;lt;condition&amp;gt;
            &amp;lt;unset token="tokAlert"&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 depends="$tokAlert$"&amp;gt;
        &amp;lt;div class="tooltip fade top in" style="top: -100px; left: 70px; display: block;"&amp;gt;
          &amp;lt;div class="tooltip-arrow"/&amp;gt;
          &amp;lt;div class="tooltip-inner"&amp;gt;$tokAlert$&amp;lt;/div&amp;gt;
        &amp;lt;/div&amp;gt;
      &amp;lt;/html&amp;gt;
    &amp;lt;/panel&amp;gt;
  &amp;lt;/row&amp;gt;
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 27 Jul 2017 20:52:55 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Dev/Access-a-drop-down-field-value-in-javascript/m-p/335435#M5012</guid>
      <dc:creator>niketn</dc:creator>
      <dc:date>2017-07-27T20:52:55Z</dc:date>
    </item>
    <item>
      <title>Re: Access a drop-down field value in javascript</title>
      <link>https://community.splunk.com/t5/Splunk-Dev/Access-a-drop-down-field-value-in-javascript/m-p/335436#M5013</link>
      <description>&lt;P&gt;@niketnilay Thank you for your reply.&lt;/P&gt;

&lt;P&gt;My purpose is to have a required field validation on this dropdown. If the user doesn't select anything from the dropdown and clicks on the submit button, he should get an alert. &lt;/P&gt;

&lt;P&gt;I couldn't find any functionality to do this on Simple XML (my javascript code doesn't run in Simple XML), hence I created a HTML dashboard.&lt;/P&gt;

&lt;P&gt;I am trying to do exactly what you demonstrated with the tool tip example, but is there a way the tool tip can be replaced with a pop up alert box?&lt;/P&gt;</description>
      <pubDate>Thu, 27 Jul 2017 22:18:39 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Dev/Access-a-drop-down-field-value-in-javascript/m-p/335436#M5013</guid>
      <dc:creator>nisha_kapoor</dc:creator>
      <dc:date>2017-07-27T22:18:39Z</dc:date>
    </item>
    <item>
      <title>Re: Access a drop-down field value in javascript</title>
      <link>https://community.splunk.com/t5/Splunk-Dev/Access-a-drop-down-field-value-in-javascript/m-p/335437#M5014</link>
      <description>&lt;P&gt;Is there some way I can position the tool tip when I have multiple input elements in the dashboard? Instead of using &lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;style="top: -100px; left: 70px; display: block;
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;can I link it to a particular input text box?&lt;/P&gt;</description>
      <pubDate>Tue, 01 Aug 2017 00:35:12 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Dev/Access-a-drop-down-field-value-in-javascript/m-p/335437#M5014</guid>
      <dc:creator>nisha_kapoor</dc:creator>
      <dc:date>2017-08-01T00:35:12Z</dc:date>
    </item>
    <item>
      <title>Re: Access a drop-down field value in javascript</title>
      <link>https://community.splunk.com/t5/Splunk-Dev/Access-a-drop-down-field-value-in-javascript/m-p/335438#M5015</link>
      <description>&lt;P&gt;Several questions ;), let me answer to the best I can.&lt;/P&gt;

&lt;P&gt;Following example links &lt;STRONG&gt;panel1&lt;/STRONG&gt; for applying CSS Style for Tooltip and also changes from inline Style to HTML &lt;CODE&gt;&amp;lt;style&amp;gt;&lt;/CODE&gt; tag which is always hidded using &lt;CODE&gt;depends&lt;/CODE&gt;.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;  &amp;lt;row&amp;gt;
    &amp;lt;panel id="panel1"&amp;gt;
      &amp;lt;input type="dropdown" token="input1" searchWhenChanged="true"&amp;gt;
        &amp;lt;label&amp;gt;College&amp;lt;/label&amp;gt;
        &amp;lt;choice value="abc"&amp;gt;ABC&amp;lt;/choice&amp;gt;
        &amp;lt;choice value="def"&amp;gt;DEF&amp;lt;/choice&amp;gt;
        &amp;lt;change&amp;gt;
          &amp;lt;condition match="isnull($value$)"&amp;gt;
            &amp;lt;set token="tokAlert"&amp;gt;No Value Selected&amp;lt;/set&amp;gt;
          &amp;lt;/condition&amp;gt;
          &amp;lt;condition&amp;gt;
            &amp;lt;unset token="tokAlert"&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 depends="$alwaysHideCSSStyle$"&amp;gt;
        &amp;lt;style&amp;gt;
          #panel1 .tooltip{
            top: -100px; 
            left: 70px; 
            display: block;
          }
        &amp;lt;/style&amp;gt;
      &amp;lt;/html&amp;gt;
      &amp;lt;html depends="$tokAlert$"&amp;gt;
        &amp;lt;div class="tooltip fade top in"&amp;gt;
          &amp;lt;div class="tooltip-arrow"/&amp;gt;
          &amp;lt;div class="tooltip-inner"&amp;gt;$tokAlert$&amp;lt;/div&amp;gt;
        &amp;lt;/div&amp;gt;
      &amp;lt;/html&amp;gt;
    &amp;lt;/panel&amp;gt;
  &amp;lt;/row&amp;gt;
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 01 Aug 2017 07:52:16 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Dev/Access-a-drop-down-field-value-in-javascript/m-p/335438#M5015</guid>
      <dc:creator>niketn</dc:creator>
      <dc:date>2017-08-01T07:52:16Z</dc:date>
    </item>
    <item>
      <title>Re: Access a drop-down field value in javascript</title>
      <link>https://community.splunk.com/t5/Splunk-Dev/Access-a-drop-down-field-value-in-javascript/m-p/335439#M5016</link>
      <description>&lt;P&gt;&lt;STRONG&gt;Option 1: JavaScript alert() based on no value selected:&lt;/STRONG&gt;&lt;BR /&gt;
Following code should pop up alert() when users click on Submit and input value for College dropdown is not selected or empty.&lt;/P&gt;

&lt;P&gt;&lt;STRONG&gt;Step 1&lt;/STRONG&gt;: Provided you have a dropdown defined like the following with change event to unset/set validation error message &lt;CODE&gt;tokenAlert&lt;/CODE&gt; based on value selected or not respectively:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;  &amp;lt;fieldset autoRun="false" submitButton="true" position="top"&amp;gt;
    &amp;lt;input type="dropdown" token="input1" searchWhenChanged="false"&amp;gt;
      &amp;lt;label&amp;gt;College&amp;lt;/label&amp;gt;
      &amp;lt;choice value="abc"&amp;gt;ABC&amp;lt;/choice&amp;gt;
      &amp;lt;choice value="def"&amp;gt;DEF&amp;lt;/choice&amp;gt;
      &amp;lt;change&amp;gt;
        &amp;lt;condition match="isnull($value$)"&amp;gt;
          &amp;lt;set token="tokAlert"&amp;gt;No College Selected&amp;lt;/set&amp;gt;
        &amp;lt;/condition&amp;gt;
        &amp;lt;condition&amp;gt;
          &amp;lt;unset token="tokAlert"&amp;gt;&amp;lt;/unset&amp;gt;
        &amp;lt;/condition&amp;gt;
      &amp;lt;/change&amp;gt;
    &amp;lt;/input&amp;gt;
  &amp;lt;/fieldset&amp;gt;
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;&lt;STRONG&gt;Step 2&lt;/STRONG&gt;: You can use jQuery to handle &lt;CODE&gt;click()&lt;/CODE&gt; event of &lt;CODE&gt;submit&lt;/CODE&gt; button and &lt;CODE&gt;alert()&lt;/CODE&gt; based on &lt;CODE&gt;tokenAlert&lt;/CODE&gt; set in SimpleXML input change event:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;require([
    'splunkjs/mvc',
    'jquery',
    'splunkjs/mvc/simplexml/ready!'
], function(mvc,$){
    $('#submit').on("click", function() {
        var submittedTokens = mvc.Components.get("submitted");
        var input1Token = submittedTokens.get("tokAlert"); //Token tokAlert is set 
        if(input1Token){
            alert(input1Token);
        };
    });
});
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;PS: &lt;CODE&gt;mvc.Components.get("submitted");&lt;/CODE&gt;, gets the tokens from Submitted Token Model from Simple XML. Token Model can be either &lt;CODE&gt;default&lt;/CODE&gt; or &lt;CODE&gt;submitted&lt;/CODE&gt; based on token behavior set in SimpleXML. Read details on Splunk Dev site: &lt;A href="http://dev.splunk.com/view/webframework-developapps/SP-CAAAEW2"&gt;http://dev.splunk.com/view/webframework-developapps/SP-CAAAEW2&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;&lt;STRONG&gt;Step 3&lt;/STRONG&gt;: If you have saved above JavaScript as &lt;CODE&gt;validation_error_alert.js&lt;/CODE&gt;, then include the same as &lt;CODE&gt;script&lt;/CODE&gt; in your &lt;CODE&gt;form&lt;/CODE&gt; tag in simple XML&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;&amp;lt;form script="validation_error_alert.js"&amp;gt;
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;PS: Simple XML CSS Extension or Simple XML JS Extension require bumping of Splunk environment. So refresh/restart Splunk and also clear internet browser history if required.&lt;/P&gt;</description>
      <pubDate>Tue, 01 Aug 2017 08:24:16 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Dev/Access-a-drop-down-field-value-in-javascript/m-p/335439#M5016</guid>
      <dc:creator>niketn</dc:creator>
      <dc:date>2017-08-01T08:24:16Z</dc:date>
    </item>
    <item>
      <title>Re: Access a drop-down field value in javascript</title>
      <link>https://community.splunk.com/t5/Splunk-Dev/Access-a-drop-down-field-value-in-javascript/m-p/335440#M5017</link>
      <description>&lt;P&gt;&lt;STRONG&gt;Option 2: Modal Error Message Window based on bootstrap element in Splunk&lt;/STRONG&gt;:&lt;BR /&gt;
Following code should open modal window with Validation Error Message, when users click on Submit and input value for College dropdown is not selected or empty.&lt;/P&gt;

&lt;P&gt;&lt;IMG src="https://community.splunk.com/storage/temp/208750-splunkvalidationmessage-modal-window.png" alt="alt text" /&gt;&lt;/P&gt;

&lt;P&gt;&lt;STRONG&gt;Step 1:&lt;/STRONG&gt; Provided you have a dropdown defined like the following with change event to unset/set validation error message &lt;CODE&gt;tokenAlert&lt;/CODE&gt; based on value selected or not respectively:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;   &amp;lt;fieldset autoRun="false" submitButton="true" position="top"&amp;gt;
     &amp;lt;input type="dropdown" token="input1" searchWhenChanged="false"&amp;gt;
       &amp;lt;label&amp;gt;College&amp;lt;/label&amp;gt;
       &amp;lt;choice value="abc"&amp;gt;ABC&amp;lt;/choice&amp;gt;
       &amp;lt;choice value="def"&amp;gt;DEF&amp;lt;/choice&amp;gt;
       &amp;lt;change&amp;gt;
         &amp;lt;condition match="isnull($value$)"&amp;gt;
           &amp;lt;set token="tokAlert"&amp;gt;No College Selected&amp;lt;/set&amp;gt;
         &amp;lt;/condition&amp;gt;
         &amp;lt;condition&amp;gt;
           &amp;lt;unset token="tokAlert"&amp;gt;&amp;lt;/unset&amp;gt;
         &amp;lt;/condition&amp;gt;
       &amp;lt;/change&amp;gt;
     &amp;lt;/input&amp;gt;
   &amp;lt;/fieldset&amp;gt;
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;&lt;STRONG&gt;Step 2:&lt;/STRONG&gt; Code for HTML Panel in Simple XML with modal window which is hidden by default (through &lt;CODE&gt;style="display: none;"&lt;/CODE&gt; and &lt;CODE&gt;aria-hidden="true"&lt;/CODE&gt; attributes):&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;  &amp;lt;row&amp;gt;
    &amp;lt;panel&amp;gt;
      &amp;lt;!--HTML for Modal View to Display Validation Messages--&amp;gt;
      &amp;lt;!--Hidden by default--&amp;gt;
      &amp;lt;!--Shows up on Submit button click based on validation errors--&amp;gt;
      &amp;lt;html&amp;gt;
        &amp;lt;div class="section" id="modals"&amp;gt;
          &amp;lt;div class="modal hide fade" id="myModal" style="display: none;" aria-hidden="true"&amp;gt;
              &amp;lt;div class="modal-header"&amp;gt;
                  &amp;lt;button type="button" class="close" data-dismiss="modal" aria-hidden="true"&amp;gt;×&amp;lt;/button&amp;gt;
                  &amp;lt;h3&amp;gt;Validation Message&amp;lt;/h3&amp;gt;
              &amp;lt;/div&amp;gt;
              &amp;lt;div class="modal-body"&amp;gt;
                  &amp;lt;p&amp;gt;$tokAlert$&amp;lt;/p&amp;gt;
              &amp;lt;/div&amp;gt;
          &amp;lt;/div&amp;gt;
        &amp;lt;/div&amp;gt;
      &amp;lt;/html&amp;gt;
    &amp;lt;/panel&amp;gt;
  &amp;lt;/row&amp;gt;
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;&lt;STRONG&gt;Step 3:&lt;/STRONG&gt; Following JavaScript code is used to &lt;CODE&gt;show&lt;/CODE&gt; the modal window, when tokenAlert is set with Validation Error Message:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;require([
    'splunkjs/mvc',
    'jquery',
    'splunkjs/mvc/simplexml/ready!'
], function(mvc,$){
    $('#submit').on("click", function() {
        var submittedTokens = mvc.Components.get("submitted");
        var input1Token = submittedTokens.get("tokAlert"); //Token tokAlert is set          
        console.log("input1Token:",input1Token);
        if(input1Token){
            $('#myModal').modal('show'); //Shows Modal window with Validation Message set in SimpleXML through HTML Panel
        };
    });
});
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;&lt;STRONG&gt;Step 4:&lt;/STRONG&gt; If you have saved above JavaScript as validation_error_show_modal.js, then include the same as script in your form tag in simple XML&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt; &amp;lt;form script="validation_error_show_modal.js"&amp;gt;
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;PS: Simple XML CSS Extension or Simple XML JS Extension require bumping of Splunk environment. So refresh/restart Splunk and also clear internet browser history if required.&lt;/P&gt;</description>
      <pubDate>Tue, 29 Sep 2020 15:07:28 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Dev/Access-a-drop-down-field-value-in-javascript/m-p/335440#M5017</guid>
      <dc:creator>niketn</dc:creator>
      <dc:date>2020-09-29T15:07:28Z</dc:date>
    </item>
    <item>
      <title>Re: Access a drop-down field value in javascript</title>
      <link>https://community.splunk.com/t5/Splunk-Dev/Access-a-drop-down-field-value-in-javascript/m-p/335441#M5018</link>
      <description>&lt;P&gt;I have answered these as separate answers below. I have tried to use Simple XML with JS Extensions rather than converting to HTML Dashboard. However, it is up to you as to which way of JavaScript implementation you are comfortable with. Please try them out and let me know.&lt;/P&gt;</description>
      <pubDate>Tue, 01 Aug 2017 08:43:20 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Dev/Access-a-drop-down-field-value-in-javascript/m-p/335441#M5018</guid>
      <dc:creator>niketn</dc:creator>
      <dc:date>2017-08-01T08:43:20Z</dc:date>
    </item>
    <item>
      <title>Re: Access a drop-down field value in javascript</title>
      <link>https://community.splunk.com/t5/Splunk-Dev/Access-a-drop-down-field-value-in-javascript/m-p/335442#M5019</link>
      <description>&lt;P&gt;@niketnilay Thank you so much for taking the time out to write these detailed and awesome answers! I executed Option 1, it works perfectly. I am still to try Option 2, but this is my feedback on the rest:&lt;/P&gt;

&lt;OL&gt;
&lt;LI&gt;Simple XML dashboard with HTML Tooltop: The problem is arising when I placed more than one input element within the panel, in this case the ToolTip doesn't get displayed with the correct input element. I put all the elements in different panels and placed these panels in the same row for now.&lt;/LI&gt;
&lt;LI&gt;Option 1: This works perfectly. I have to clear my browsing history and/or restart Splunk everytime I make a change to it. Just out of curiosity if I had to do the same on Splunk cloud, where I don't have access to Splunk folder, how would I go about it?&lt;/LI&gt;
&lt;/OL&gt;</description>
      <pubDate>Tue, 01 Aug 2017 20:23:49 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Dev/Access-a-drop-down-field-value-in-javascript/m-p/335442#M5019</guid>
      <dc:creator>nisha_kapoor</dc:creator>
      <dc:date>2017-08-01T20:23:49Z</dc:date>
    </item>
    <item>
      <title>Re: Access a drop-down field value in javascript</title>
      <link>https://community.splunk.com/t5/Splunk-Dev/Access-a-drop-down-field-value-in-javascript/m-p/335443#M5020</link>
      <description>&lt;P&gt;@nisha_kapoor, &lt;/P&gt;

&lt;P&gt;1) sorry Simple XML tooltip option I had mentioned prior to knowing your requirement. Yes it might not be easy to implement with Simple XML but you can read the blog from OctoInsight to introduce Tooltips using JavaScript: &lt;A href="https://www.google.co.in/amp/s/blog.octoinsight.com/splunk-tooltips-instructions-included/amp/"&gt;https://www.google.co.in/amp/s/blog.octoinsight.com/splunk-tooltips-instructions-included/amp/&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;2) For developer's instance there are some setting that you can introduce in Splunk and Browser to prevent caching so that new JavaScript and CSS files are always picked up (&lt;A href="https://docs.splunk.com/Documentation/Splunk/latest/AdvancedDev/CustomizationOptions#Clear_client_and_server_assets_caches_after_customization"&gt;https://docs.splunk.com/Documentation/Splunk/latest/AdvancedDev/CustomizationOptions#Clear_client_and_server_assets_caches_after_customization&lt;/A&gt;). Instead of restart you can also try out /_bump or /debug/refresh options. Static assets can also be uploaded via Splunk UI provided you have access or else you can reach out to Splunk Admin (in case of Splunk Cloud- Splunk Support team).&lt;/P&gt;

&lt;P&gt;Let me know if further detail is required for any of these.&lt;/P&gt;</description>
      <pubDate>Wed, 02 Aug 2017 01:13:10 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Dev/Access-a-drop-down-field-value-in-javascript/m-p/335443#M5020</guid>
      <dc:creator>niketn</dc:creator>
      <dc:date>2017-08-02T01:13:10Z</dc:date>
    </item>
  </channel>
</rss>

