Splunk Search

How to Rename "Search" Button

_gkollias
SplunkTrust
SplunkTrust

Hi All,

Is there a way to rename the Search button say for a text form input in Splunk 6? Would I use a .css stylesheet or add html in to the simple xml?

Any insight would be much appreciated.

Thanks!

Tags (2)
1 Solution

martin_mueller
SplunkTrust
SplunkTrust

I don't think that's possible in SimpleXML, but you can do that for an HTML/JS dashboard by setting the text property in the SubmitButton constructor.

View solution in original post

strive
Influencer

In advanced xml it is possible by using button module and setting value for label parameter

0 Karma

martin_mueller
SplunkTrust
SplunkTrust

I don't think that's possible in SimpleXML, but you can do that for an HTML/JS dashboard by setting the text property in the SubmitButton constructor.

martin_mueller
SplunkTrust
SplunkTrust

Turn on your browser's JavaScript Console... I assume it'll complain about a missing comma after the text: 'Resubmit' line or something related.

0 Karma

_gkollias
SplunkTrust
SplunkTrust

Hi Martin,

I did what you mentioned, except the page won't load now.

I changed the name in two places:

1)




2) // SUBMIT FORM DATA
//

    var submit = new SubmitButton({
        id: 'submit',
    text: 'Resubmit'
        el: $('#search_btn')
    }, {tokens: true}).render();

Does this look right?

0 Karma
Get Updates on the Splunk Community!

Index This | I am a number, but when you add ‘G’ to me, I go away. What number am I?

March 2024 Edition Hayyy Splunk Education Enthusiasts and the Eternally Curious!  We’re back with another ...

What’s New in Splunk App for PCI Compliance 5.3.1?

The Splunk App for PCI Compliance allows customers to extend the power of their existing Splunk solution with ...

Extending Observability Content to Splunk Cloud

Register to join us !   In this Extending Observability Content to Splunk Cloud Tech Talk, you'll see how to ...