Splunk Search

How to add value from a token into textbox

Thulasinathan_M
Contributor

Hi Splunk Experts.
I've a table with multiple fields, based on a click I've created a token to get a value of it. I need to pass this token's value to a Textbox of an another panel. Is it Possible. Please advice!!


Tags (1)
0 Karma
1 Solution

gcusello
SplunkTrust
SplunkTrust

Hi @Thulasinathan_M,

I tried in my splunk and it runs:

  <fieldset submitButton="false">
    <input type="text" token="token1">
      <label>Token1</label>
    </input>
    <input type="text" token="token2">
      <label>Token2</label>
      <default>$token1$</default>
    </input>
  </fieldset>

Ciao.

Giuseppe

View solution in original post

gcusello
SplunkTrust
SplunkTrust

Hi @Thulasinathan_M,

did you tried to insert the token in the default tag ?

    <input type="text" token="your_text_token">
      <label>Text label</label>
      <default>$your_previous_token$</default>
      <prefix>your_field="</prefix>
      <suffix>"</suffix>
    </input>

Ciao.

Giuseppe

0 Karma

Thulasinathan_M
Contributor

Hi @gcusello Yes tried, but that doesn't seems to be working.

0 Karma

gcusello
SplunkTrust
SplunkTrust

Hi @Thulasinathan_M,

I tried in my splunk and it runs:

  <fieldset submitButton="false">
    <input type="text" token="token1">
      <label>Token1</label>
    </input>
    <input type="text" token="token2">
      <label>Token2</label>
      <default>$token1$</default>
    </input>
  </fieldset>

Ciao.

Giuseppe

Thulasinathan_M
Contributor

I think the issue is, at times I insert manual inputs in this textbox. So when I do that, on the further click the token value is not getting inserted properly. Wondering whether I should clear/reset the data/ token

0 Karma

Thulasinathan_M
Contributor

After resetting token, it started working. Thanks!! 🙂

0 Karma

gcusello
SplunkTrust
SplunkTrust

Hi @Thulasinathan_M ,

good for you, see next time!

let me know if I can help you more, or, please, accept one answer for the other people of Community.

Ciao and happy splunking

Giuseppe

P.S.: Karma Points are appreciated 😉

0 Karma
Get Updates on the Splunk Community!

See your relevant APM services, dashboards, and alerts in one place with the updated ...

As a Splunk Observability user, you have a lot of data you have to manage, prioritize, and troubleshoot on a ...

Index This | What goes away as soon as you talk about it?

May 2025 Edition Hayyy Splunk Education Enthusiasts and the Eternally Curious!  We’re back with this month’s ...

What's New in Splunk Observability Cloud and Splunk AppDynamics - May 2025

This month, we’re delivering several new innovations in Splunk Observability Cloud and Splunk AppDynamics ...