<?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: Unset token after click in Dashboards &amp; Visualizations</title>
    <link>https://community.splunk.com/t5/Dashboards-Visualizations/Unset-token-after-click/m-p/405894#M26591</link>
    <description>&lt;PRE&gt;&lt;CODE&gt;require([
     'underscore',
     'jquery',
     'splunkjs/mvc',
     'splunkjs/mvc/tableview',
     'splunkjs/mvc/simpleform/formutils',
     'splunkjs/mvc/simplexml/ready!'
 ], function(_, $, mvc, TableView, FormUtils) {

var defaultTokenModelun = mvc.Components.getInstance('default', {create: true});
var submittedTokenModelun = mvc.Components.getInstance('submitted', {create: true});

function unsetToken(name) {
    defaultTokenModelun.unset(name);
    submittedTokenModelun.unset(name);
}

$(document).on("click", "#YourPictureId", function() {
        unsetToken("show_errors_dnd")
});
});
&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Wed, 25 Jul 2018 11:48:03 GMT</pubDate>
    <dc:creator>stevevg</dc:creator>
    <dc:date>2018-07-25T11:48:03Z</dc:date>
    <item>
      <title>Unset token after click</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Unset-token-after-click/m-p/405891#M26588</link>
      <description>&lt;P&gt;HI Everyone,&lt;/P&gt;

&lt;P&gt;I am using below HTML in my xml dashboard:&lt;/P&gt;

&lt;P&gt;&lt;span class="lia-unicode-emoji" title=":cross_mark:"&gt;❌&lt;/span&gt;&lt;/P&gt;

&lt;P&gt;I would like to unset a token in a dashboard if i click on the above button.&lt;/P&gt;

&lt;P&gt;please provide your inputs!&lt;/P&gt;

&lt;P&gt;BK&lt;/P&gt;</description>
      <pubDate>Mon, 21 May 2018 21:31:02 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Unset-token-after-click/m-p/405891#M26588</guid>
      <dc:creator>bharathkumarnec</dc:creator>
      <dc:date>2018-05-21T21:31:02Z</dc:date>
    </item>
    <item>
      <title>Re: Unset token after click</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Unset-token-after-click/m-p/405892#M26589</link>
      <description>&lt;P&gt;@bharathkumarnec, can you add your current Simple XML code for above HTML element? Also what is the token that needs to be unset on button click?&lt;/P&gt;</description>
      <pubDate>Mon, 21 May 2018 21:40:10 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Unset-token-after-click/m-p/405892#M26589</guid>
      <dc:creator>niketn</dc:creator>
      <dc:date>2018-05-21T21:40:10Z</dc:date>
    </item>
    <item>
      <title>Re: Unset token after click</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Unset-token-after-click/m-p/405893#M26590</link>
      <description>&lt;P&gt;Please make sure to mark your code with the code button (101 010) or by putting at least 4 spaces on the front of each line of the block of code, so the system will not read the code as HTML and treat it accordingly.&lt;/P&gt;</description>
      <pubDate>Tue, 22 May 2018 03:10:18 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Unset-token-after-click/m-p/405893#M26590</guid>
      <dc:creator>DalJeanis</dc:creator>
      <dc:date>2018-05-22T03:10:18Z</dc:date>
    </item>
    <item>
      <title>Re: Unset token after click</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Unset-token-after-click/m-p/405894#M26591</link>
      <description>&lt;PRE&gt;&lt;CODE&gt;require([
     'underscore',
     'jquery',
     'splunkjs/mvc',
     'splunkjs/mvc/tableview',
     'splunkjs/mvc/simpleform/formutils',
     'splunkjs/mvc/simplexml/ready!'
 ], function(_, $, mvc, TableView, FormUtils) {

var defaultTokenModelun = mvc.Components.getInstance('default', {create: true});
var submittedTokenModelun = mvc.Components.getInstance('submitted', {create: true});

function unsetToken(name) {
    defaultTokenModelun.unset(name);
    submittedTokenModelun.unset(name);
}

$(document).on("click", "#YourPictureId", function() {
        unsetToken("show_errors_dnd")
});
});
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 25 Jul 2018 11:48:03 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Unset-token-after-click/m-p/405894#M26591</guid>
      <dc:creator>stevevg</dc:creator>
      <dc:date>2018-07-25T11:48:03Z</dc:date>
    </item>
  </channel>
</rss>

