<?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: Is it possible to create a textarea in HTML and have it behave like a textfield? in Dashboards &amp; Visualizations</title>
    <link>https://community.splunk.com/t5/Dashboards-Visualizations/Is-it-possible-to-create-a-textarea-in-HTML-and-have-it-behave/m-p/167194#M10293</link>
    <description>&lt;P&gt;That makes sense. I was asking because there is a multi-select input too and I was wondering if that would work (it can be modified to allow entering custom values).&lt;/P&gt;</description>
    <pubDate>Mon, 22 Jun 2015 20:52:48 GMT</pubDate>
    <dc:creator>LukeMurphey</dc:creator>
    <dc:date>2015-06-22T20:52:48Z</dc:date>
    <item>
      <title>Is it possible to create a textarea in HTML and have it behave like a textfield?</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Is-it-possible-to-create-a-textarea-in-HTML-and-have-it-behave/m-p/167191#M10290</link>
      <description>&lt;P&gt;I want to create a textarea in a dashboard. What I want to happen is when I enter IP Addresses into the textarea, I want the contents of the textarea to be placed in a token just like a textfield. Then I can search for the IP Address. How would I go about doing that.&lt;/P&gt;</description>
      <pubDate>Thu, 18 Jun 2015 22:00:52 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Is-it-possible-to-create-a-textarea-in-HTML-and-have-it-behave/m-p/167191#M10290</guid>
      <dc:creator>syx093</dc:creator>
      <dc:date>2015-06-18T22:00:52Z</dc:date>
    </item>
    <item>
      <title>Re: Is it possible to create a textarea in HTML and have it behave like a textfield?</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Is-it-possible-to-create-a-textarea-in-HTML-and-have-it-behave/m-p/167192#M10291</link>
      <description>&lt;P&gt;Could you clarify why you want to have a textarea instead of a input? Is it because you want the ability to specify multiple IP addresses?&lt;/P&gt;</description>
      <pubDate>Mon, 22 Jun 2015 20:09:33 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Is-it-possible-to-create-a-textarea-in-HTML-and-have-it-behave/m-p/167192#M10291</guid>
      <dc:creator>LukeMurphey</dc:creator>
      <dc:date>2015-06-22T20:09:33Z</dc:date>
    </item>
    <item>
      <title>Re: Is it possible to create a textarea in HTML and have it behave like a textfield?</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Is-it-possible-to-create-a-textarea-in-HTML-and-have-it-behave/m-p/167193#M10292</link>
      <description>&lt;P&gt;Textarea expands when you copy and paste IP Addresses in them while text fields does not. Because text areas allow you to do this, you can see which IP Addresses you have pasted into the textarea. This makes it easier to see what might have gone wrong. Plus, it is more visually appealing and executive friendly. &lt;/P&gt;</description>
      <pubDate>Mon, 22 Jun 2015 20:15:12 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Is-it-possible-to-create-a-textarea-in-HTML-and-have-it-behave/m-p/167193#M10292</guid>
      <dc:creator>syx093</dc:creator>
      <dc:date>2015-06-22T20:15:12Z</dc:date>
    </item>
    <item>
      <title>Re: Is it possible to create a textarea in HTML and have it behave like a textfield?</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Is-it-possible-to-create-a-textarea-in-HTML-and-have-it-behave/m-p/167194#M10293</link>
      <description>&lt;P&gt;That makes sense. I was asking because there is a multi-select input too and I was wondering if that would work (it can be modified to allow entering custom values).&lt;/P&gt;</description>
      <pubDate>Mon, 22 Jun 2015 20:52:48 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Is-it-possible-to-create-a-textarea-in-HTML-and-have-it-behave/m-p/167194#M10293</guid>
      <dc:creator>LukeMurphey</dc:creator>
      <dc:date>2015-06-22T20:52:48Z</dc:date>
    </item>
    <item>
      <title>Re: Is it possible to create a textarea in HTML and have it behave like a textfield?</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Is-it-possible-to-create-a-textarea-in-HTML-and-have-it-behave/m-p/167195#M10294</link>
      <description>&lt;P&gt;I was thinking about doing that but I was told to that the executives wants to be able to copy and paste these IP Addresses into the textarea. I believe that they do not want to manually input all say 100 IP Addresses into a multi-select.&lt;/P&gt;</description>
      <pubDate>Tue, 23 Jun 2015 12:39:42 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Is-it-possible-to-create-a-textarea-in-HTML-and-have-it-behave/m-p/167195#M10294</guid>
      <dc:creator>syx093</dc:creator>
      <dc:date>2015-06-23T12:39:42Z</dc:date>
    </item>
    <item>
      <title>Re: Is it possible to create a textarea in HTML and have it behave like a textfield?</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Is-it-possible-to-create-a-textarea-in-HTML-and-have-it-behave/m-p/167196#M10295</link>
      <description>&lt;P&gt;Any updates on this?&lt;/P&gt;</description>
      <pubDate>Mon, 23 Nov 2015 21:58:20 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Is-it-possible-to-create-a-textarea-in-HTML-and-have-it-behave/m-p/167196#M10295</guid>
      <dc:creator>rharrisssi</dc:creator>
      <dc:date>2015-11-23T21:58:20Z</dc:date>
    </item>
    <item>
      <title>Re: Is it possible to create a textarea in HTML and have it behave like a textfield?</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Is-it-possible-to-create-a-textarea-in-HTML-and-have-it-behave/m-p/167197#M10296</link>
      <description>&lt;P&gt;I have a solution for this problem:&lt;BR /&gt;
It consist of 2 files - textarea.js, textarea.css which You add to your application appserver/static folder.&lt;BR /&gt;
In your dashboard definition you add 'script="textarea.js" stylesheet="textarea.css"&amp;gt;' to your root element&lt;BR /&gt;
(for example  in the first line).&lt;BR /&gt;
Then You add your text area to the fieldset:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;&amp;lt;html&amp;gt;
  &amp;lt;label&amp;gt;Comment&amp;lt;/label&amp;gt;
  &amp;lt;textarea rows="3" id="ta_task_comment"&amp;gt;&amp;lt;/textarea&amp;gt;
&amp;lt;/html&amp;gt;
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Where text area id is your token name with "ta_" prefix.&lt;/P&gt;

&lt;P&gt;textarea.js:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;require([
  'underscore',
  'jquery',
  'splunkjs/mvc',
  'splunkjs/mvc/tableview',
  'splunkjs/mvc/simplexml/ready!'
], function(_, $, mvc, TableView) {
  var defaultTokenSpace = mvc.Components.getInstance('default');
  $('textarea').parent().parent().addClass('textarea_div');
  $('textarea').each(function (ta) {
    $(this).on('input', function(input) {
      defaultTokenSpace.set($(this).attr('id').replace('ta_' ,'') ,$(this).val());
    })
  })
});
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;textarea.css:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;    .textarea_div {
        display: inline-block;
        width: 200px;
        margin-right: 50px;
    }
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Sun, 15 May 2016 06:31:28 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Is-it-possible-to-create-a-textarea-in-HTML-and-have-it-behave/m-p/167197#M10296</guid>
      <dc:creator>piUek</dc:creator>
      <dc:date>2016-05-15T06:31:28Z</dc:date>
    </item>
    <item>
      <title>Re: Is it possible to create a textarea in HTML and have it behave like a textfield?</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Is-it-possible-to-create-a-textarea-in-HTML-and-have-it-behave/m-p/167198#M10297</link>
      <description>&lt;P&gt;Excellent! I tested it and it works!&lt;/P&gt;</description>
      <pubDate>Mon, 25 Jul 2016 14:12:14 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Is-it-possible-to-create-a-textarea-in-HTML-and-have-it-behave/m-p/167198#M10297</guid>
      <dc:creator>Dev999</dc:creator>
      <dc:date>2016-07-25T14:12:14Z</dc:date>
    </item>
    <item>
      <title>Re: Is it possible to create a textarea in HTML and have it behave like a textfield?</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Is-it-possible-to-create-a-textarea-in-HTML-and-have-it-behave/m-p/167199#M10298</link>
      <description>&lt;P&gt;How did it work?I am triying to use a textarea in my dashboard form but unable to pass its values in any token using the above script and css.  I need to do it for users so they are able to enter comments also use new line feature which can be done by text area. But I am not able to get the text area value in the token.&lt;/P&gt;</description>
      <pubDate>Tue, 20 Feb 2018 20:22:29 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Is-it-possible-to-create-a-textarea-in-HTML-and-have-it-behave/m-p/167199#M10298</guid>
      <dc:creator>Vijeta</dc:creator>
      <dc:date>2018-02-20T20:22:29Z</dc:date>
    </item>
    <item>
      <title>Re: Is it possible to create a textarea in HTML and have it behave like a textfield?</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Is-it-possible-to-create-a-textarea-in-HTML-and-have-it-behave/m-p/520382#M34987</link>
      <description>&lt;P&gt;This JavaScript executes on input. Can you help me with the same problem but I want the JavaScript execute when the user clicks on a html button instead (i.e. it grabs the content of the textarea and creates a splunk token)?&lt;/P&gt;</description>
      <pubDate>Fri, 18 Sep 2020 20:23:23 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Is-it-possible-to-create-a-textarea-in-HTML-and-have-it-behave/m-p/520382#M34987</guid>
      <dc:creator>alwayslearning</dc:creator>
      <dc:date>2020-09-18T20:23:23Z</dc:date>
    </item>
  </channel>
</rss>

