<?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: How to remove label from dropdown? in Dashboards &amp; Visualizations</title>
    <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-remove-label-from-dropdown/m-p/27624#M1102</link>
    <description>&lt;P&gt;Thanks MHibbin,&lt;/P&gt;

&lt;P&gt;I am building only basic dashboard, here is my XML&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;&amp;lt;fieldset autoRun="true"&amp;gt;
    &amp;lt;input type="time" searchWhenChanged="true"&amp;gt;
    &amp;lt;/input&amp;gt;
    &amp;lt;input type="dropdown" token="JT_JOB"&amp;gt;
        &amp;lt;populatingSearch fieldForValue="JT_JOB" fieldForLabel="JT_JOB"&amp;gt;
            &amp;lt;![CDATA[eventtype=counters | table JT_JOB | dedup JT_JOB | sort JT_JOB ]]&amp;gt;
        &amp;lt;/populatingSearch&amp;gt;
    &amp;lt;/input&amp;gt;
&amp;lt;/fieldset&amp;gt; 
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;If I keep label blank then alignment will disturb [time and dropdown will not be in single row], if I remove Label then splunk will use default label in this case JT_JOB.&lt;/P&gt;</description>
    <pubDate>Tue, 07 Aug 2012 13:45:13 GMT</pubDate>
    <dc:creator>jangid</dc:creator>
    <dc:date>2012-08-07T13:45:13Z</dc:date>
    <item>
      <title>How to remove label from dropdown?</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-remove-label-from-dropdown/m-p/27622#M1100</link>
      <description>&lt;P&gt;I have created a form based panel according to &lt;A href="http://docs.splunk.com/Documentation/Splunk/latest/Developer/AddDropDowns"&gt;http://docs.splunk.com/Documentation/Splunk/latest/Developer/AddDropDowns&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;Above drop down there a Label, I want to remove this Label how do I?&lt;/P&gt;

&lt;P&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Tue, 07 Aug 2012 12:50:49 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-remove-label-from-dropdown/m-p/27622#M1100</guid>
      <dc:creator>jangid</dc:creator>
      <dc:date>2012-08-07T12:50:49Z</dc:date>
    </item>
    <item>
      <title>Re: How to remove label from dropdown?</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-remove-label-from-dropdown/m-p/27623#M1101</link>
      <description>&lt;P&gt;If you convert your form to advanced XML (you can do this by appending &lt;CODE&gt;?showsource=1&lt;/CODE&gt; to the view's URL). Copy this to &lt;STRONG&gt;NEW&lt;/STRONG&gt; view (through the manager), and call it something like yourViewAdv to differentiate between the original and the new.&lt;/P&gt;

&lt;P&gt;Then in your new advanced XML there will be a line similar to the following...&lt;/P&gt;

&lt;P&gt;&lt;OBJECT&gt;&lt;PARAM name="field" /&gt;enterWord&lt;/OBJECT&gt;&lt;/P&gt;

&lt;P&gt;Simply replace the "enterWord" (whatever it will be in your case) with a space " ".&lt;/P&gt;

&lt;P&gt;You could also put an application.css file in your "&lt;CODE&gt;$SPLUNK_HOME/etc/apps/&amp;lt;yourApp&amp;gt;/appserver/static/&lt;/CODE&gt;" directory (replace "&lt;CODE&gt;&amp;lt;yourApp&amp;gt;&lt;/CODE&gt;" with the name of your app, if this is the default app, this will be "search"). with the following contents. This will simply hide the text...&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;.splFormSearch .ExtendedFieldSearch label {
    font-size: 0;
}
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;You also apply a specific CSS file (e.g. yourForm.css in the App's appserver/static directory) to the view in advanced XML, to avoid affecting the whole app. This can be done by adding the following to the "&lt;CODE&gt;&amp;lt;view&amp;gt;&lt;/CODE&gt;" tag in the advanced XML...&lt;/P&gt;

&lt;P&gt;stylesheet="yourForm.css"&lt;/P&gt;

&lt;P&gt;Hope this helps,&lt;/P&gt;

&lt;P&gt;Regards,&lt;/P&gt;

&lt;P&gt;MHibbin&lt;/P&gt;</description>
      <pubDate>Tue, 07 Aug 2012 13:17:42 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-remove-label-from-dropdown/m-p/27623#M1101</guid>
      <dc:creator>MHibbin</dc:creator>
      <dc:date>2012-08-07T13:17:42Z</dc:date>
    </item>
    <item>
      <title>Re: How to remove label from dropdown?</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-remove-label-from-dropdown/m-p/27624#M1102</link>
      <description>&lt;P&gt;Thanks MHibbin,&lt;/P&gt;

&lt;P&gt;I am building only basic dashboard, here is my XML&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;&amp;lt;fieldset autoRun="true"&amp;gt;
    &amp;lt;input type="time" searchWhenChanged="true"&amp;gt;
    &amp;lt;/input&amp;gt;
    &amp;lt;input type="dropdown" token="JT_JOB"&amp;gt;
        &amp;lt;populatingSearch fieldForValue="JT_JOB" fieldForLabel="JT_JOB"&amp;gt;
            &amp;lt;![CDATA[eventtype=counters | table JT_JOB | dedup JT_JOB | sort JT_JOB ]]&amp;gt;
        &amp;lt;/populatingSearch&amp;gt;
    &amp;lt;/input&amp;gt;
&amp;lt;/fieldset&amp;gt; 
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;If I keep label blank then alignment will disturb [time and dropdown will not be in single row], if I remove Label then splunk will use default label in this case JT_JOB.&lt;/P&gt;</description>
      <pubDate>Tue, 07 Aug 2012 13:45:13 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-remove-label-from-dropdown/m-p/27624#M1102</guid>
      <dc:creator>jangid</dc:creator>
      <dc:date>2012-08-07T13:45:13Z</dc:date>
    </item>
    <item>
      <title>Re: How to remove label from dropdown?</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-remove-label-from-dropdown/m-p/27625#M1103</link>
      <description>&lt;P&gt;If you don't wish to use advanced XML (which will give you lots of additional functionality), I would use the application.css file method to hide the text. You can the use CSS to modify the display of on-screen components (e.g. the search button) by "moving" them. You can use firebug to really look into the CSS modifications.&lt;/P&gt;</description>
      <pubDate>Wed, 08 Aug 2012 21:53:00 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-remove-label-from-dropdown/m-p/27625#M1103</guid>
      <dc:creator>MHibbin</dc:creator>
      <dc:date>2012-08-08T21:53:00Z</dc:date>
    </item>
    <item>
      <title>Re: How to remove label from dropdown?</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-remove-label-from-dropdown/m-p/27626#M1104</link>
      <description>&lt;P&gt;Thanks MHibbin,&lt;/P&gt;

&lt;P&gt;It means there is no direct way to achieve this.&lt;BR /&gt;
Yes I can do this. &lt;/P&gt;

&lt;P&gt;Thanks Again &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 09 Aug 2012 12:06:47 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-remove-label-from-dropdown/m-p/27626#M1104</guid>
      <dc:creator>jangid</dc:creator>
      <dc:date>2012-08-09T12:06:47Z</dc:date>
    </item>
  </channel>
</rss>

