Splunk Search

How to Rename "Search" Button

_gkollias
Builder

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
Builder

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!

Detecting Remote Code Executions With the Splunk Threat Research Team

WATCH NOWRemote code execution (RCE) vulnerabilities pose a significant risk to organizations. If exploited, ...

Enter the Splunk Community Dashboard Challenge for Your Chance to Win!

The Splunk Community Dashboard Challenge is underway! This is your chance to showcase your skills in creating ...

.conf24 | Session Scheduler is Live!!

.conf24 is happening June 11 - 14 in Las Vegas, and we are thrilled to announce that the conference catalog ...