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!

Good Sourcetype Naming

When it comes to getting data in, one of the earliest decisions made is what to use as a sourcetype. Often, ...

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 ...

Splunk App for Anomaly Detection End of Life Announcement

Q: What is happening to the Splunk App for Anomaly Detection?A: Splunk is officially announcing the ...