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!

Introducing the 2024 SplunkTrust!

Hello, Splunk Community! We are beyond thrilled to announce our newest group of SplunkTrust members!  The ...

Introducing the 2024 Splunk MVPs!

We are excited to announce the 2024 cohort of the Splunk MVP program. Splunk MVPs are passionate members of ...

Splunk Custom Visualizations App End of Life

The Splunk Custom Visualizations apps End of Life for SimpleXML will reach end of support on Dec 21, 2024, ...