<?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 Validate Text field Token without Using JavaScript in Dashboards &amp; Visualizations</title>
    <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-Validate-Text-field-Token-without-Using-JavaScript/m-p/373075#M24365</link>
    <description>&lt;P&gt;@Niketnilay &lt;BR /&gt;
Hi Niket,&lt;/P&gt;

&lt;P&gt;I'm looking fro a similar kind of solution, but i have two text box inputs.So i need to Prevent the users from entering wildcard(Asterix) in both the inputs.I have tested the above solution but not sure on how to  implement the same for 2 inputs(both being text inputs).If they enter Asterix in any one of the field is accepted but both at the same time is not accepted or we can show a pop-up like "Please enter atleast one input."&lt;BR /&gt;
Please  help.&lt;/P&gt;

&lt;P&gt;Thank you in advance.&lt;/P&gt;</description>
    <pubDate>Sun, 27 Oct 2019 05:13:55 GMT</pubDate>
    <dc:creator>kranthimutyala</dc:creator>
    <dc:date>2019-10-27T05:13:55Z</dc:date>
    <item>
      <title>How to Validate Text field Token without Using JavaScript</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-Validate-Text-field-Token-without-Using-JavaScript/m-p/373073#M24363</link>
      <description>&lt;P&gt;I have dashboard with text field  as an input  i want to restrict the users  to enter wildcard(*) for that text field.&lt;BR /&gt;
how can i achieve this in simple Xml without javascript.&lt;BR /&gt;
please help me with this. &lt;/P&gt;</description>
      <pubDate>Fri, 24 Mar 2017 17:37:59 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-Validate-Text-field-Token-without-Using-JavaScript/m-p/373073#M24363</guid>
      <dc:creator>sravankaripe</dc:creator>
      <dc:date>2017-03-24T17:37:59Z</dc:date>
    </item>
    <item>
      <title>Re: How to Validate Text field Token without Using JavaScript</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-Validate-Text-field-Token-without-Using-JavaScript/m-p/373074#M24364</link>
      <description>&lt;P&gt;You can use &lt;STRONG&gt;text&lt;/STRONG&gt; input's &lt;STRONG&gt;change&lt;/STRONG&gt; event handler to add a &lt;STRONG&gt;condition&lt;/STRONG&gt; block and &lt;STRONG&gt;match&lt;/STRONG&gt; value of text box to set/unset required token.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;&amp;lt;condition match="$value$!=&amp;amp;quot;*&amp;amp;quot;"&amp;gt;
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Following is a run-anywhere example using Splunk's internal index&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;&amp;lt;form&amp;gt;
  &amp;lt;label&amp;gt;Text box input validation&amp;lt;/label&amp;gt;
  &amp;lt;fieldset submitButton="false"&amp;gt;
    &amp;lt;input type="text" token="selLogLevel"&amp;gt;
      &amp;lt;label&amp;gt;Provide Log Level&amp;lt;/label&amp;gt;
      &amp;lt;change&amp;gt;
        &amp;lt;condition match="$value$!=&amp;amp;quot;*&amp;amp;quot;"&amp;gt;
          &amp;lt;set token="logLevelTok"&amp;gt;$value$&amp;lt;/set&amp;gt;
        &amp;lt;/condition&amp;gt;
        &amp;lt;condition&amp;gt;
          &amp;lt;unset token="logLevelTok"&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;
  &amp;lt;row&amp;gt;
    &amp;lt;panel&amp;gt;
      &amp;lt;table depends="$logLevelTok$"&amp;gt;
        &amp;lt;search&amp;gt;
          &amp;lt;query&amp;gt;index=_internal sourcetype=splunkd log_level=$logLevelTok$
|stats count&amp;lt;/query&amp;gt;
          &amp;lt;earliest&amp;gt;-15m&amp;lt;/earliest&amp;gt;
          &amp;lt;latest&amp;gt;now&amp;lt;/latest&amp;gt;
          &amp;lt;sampleRatio&amp;gt;1&amp;lt;/sampleRatio&amp;gt;
        &amp;lt;/search&amp;gt;
      &amp;lt;/table&amp;gt;
      &amp;lt;html rejects="$logLevelTok$"&amp;gt;
        &amp;lt;div&amp;gt;
          &amp;lt;p style="color:red;font-weight:bold;font-size:150%;text-align:left;"&amp;gt;
          Asterix * not allowed
          &amp;lt;/p&amp;gt;
        &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, 24 Mar 2017 20:15:41 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-Validate-Text-field-Token-without-Using-JavaScript/m-p/373074#M24364</guid>
      <dc:creator>niketn</dc:creator>
      <dc:date>2017-03-24T20:15:41Z</dc:date>
    </item>
    <item>
      <title>Re: How to Validate Text field Token without Using JavaScript</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-Validate-Text-field-Token-without-Using-JavaScript/m-p/373075#M24365</link>
      <description>&lt;P&gt;@Niketnilay &lt;BR /&gt;
Hi Niket,&lt;/P&gt;

&lt;P&gt;I'm looking fro a similar kind of solution, but i have two text box inputs.So i need to Prevent the users from entering wildcard(Asterix) in both the inputs.I have tested the above solution but not sure on how to  implement the same for 2 inputs(both being text inputs).If they enter Asterix in any one of the field is accepted but both at the same time is not accepted or we can show a pop-up like "Please enter atleast one input."&lt;BR /&gt;
Please  help.&lt;/P&gt;

&lt;P&gt;Thank you in advance.&lt;/P&gt;</description>
      <pubDate>Sun, 27 Oct 2019 05:13:55 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-Validate-Text-field-Token-without-Using-JavaScript/m-p/373075#M24365</guid>
      <dc:creator>kranthimutyala</dc:creator>
      <dc:date>2019-10-27T05:13:55Z</dc:date>
    </item>
  </channel>
</rss>

