Dashboards & Visualizations

Reset Textbox input on changing selection of a radio button

vaibhavagg2006
Communicator

Hi Experts

I have a textbox and 2 radio buttons in a dashboard. I want to reset the textbox to empty on click of the radio button. I am able to unset the token by using the set/unset token but the text in the textbox does not go away. Is it possible to change/remove the text of the textbox on click of the radio button.

 

Thanks in Advance!

Labels (1)
Tags (3)
0 Karma
1 Solution

scelikok
SplunkTrust
SplunkTrust

Hi @vaibhavagg2006,

You should unset the token again with form prefix. Please see below example;

  <fieldset submitButton="false">
    <input type="radio" token="reset_tokens" searchWhenChanged="true">
      <label></label>
      <choice value="reset">Reset Token</choice>
      <change>
        <set token="component_token">*</set>
        <unset token="reset_tokens"></unset>
        <unset token="form.reset_tokens"></unset>
      </change>
    </input>
  </fieldset>

 

If this reply helps you an upvote and "Accept as Solution" is appreciated.

View solution in original post

scelikok
SplunkTrust
SplunkTrust

Hi @vaibhavagg2006,

You should unset the token again with form prefix. Please see below example;

  <fieldset submitButton="false">
    <input type="radio" token="reset_tokens" searchWhenChanged="true">
      <label></label>
      <choice value="reset">Reset Token</choice>
      <change>
        <set token="component_token">*</set>
        <unset token="reset_tokens"></unset>
        <unset token="form.reset_tokens"></unset>
      </change>
    </input>
  </fieldset>

 

If this reply helps you an upvote and "Accept as Solution" is appreciated.

vaibhavagg2006
Communicator

It worked, Thanks!

0 Karma
Get Updates on the Splunk Community!

Database Performance Sidebar Panel Now on APM Database Query Performance & Service ...

We’ve streamlined the troubleshooting experience for database-related service issues by adding a database ...

IM Landing Page Filter - Now Available

We’ve added the capability for you to filter across the summary details on the main Infrastructure Monitoring ...

Dynamic Links from Alerts to IM Navigators - New in Observability Cloud

Splunk continues to improve the troubleshooting experience in Observability Cloud with this latest enhancement ...