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

REGISTER NOWRemote code execution (RCE) vulnerabilities pose a significant risk to organizations. If ...

Observability | Use Synthetic Monitoring for Website Metadata Verification

If you are on Splunk Observability Cloud, you may already have Synthetic Monitoringin your observability ...

More Ways To Control Your Costs With Archived Metrics | Register for Tech Talk

Tuesday, May 14, 2024  |  11AM PT / 2PM ET Register to Attend Join us for this Tech Talk and learn how to ...