Dashboards & Visualizations

Change the "Submit" button text in Splunk 6.1 Simple XML Dashboard

harshal_chakran
Builder

Hi,

Is it possible to change the text of submit button in Simple XML Dashboard of Splunk 6.1?

Kindly Help...!!!

1 Solution

harshal_chakran
Builder

Got it...Thanks strive and martin_mueller..!!!

0 Karma

martin_mueller
SplunkTrust
SplunkTrust

As stated in that answer, you need to set the text property in the constructor, not the HTML.

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

harshal_chakran
Builder

I converted my page in html,but still having the issue.

I changed the code in here from "Submit" text to "Update"



In js side, it looks like this:

var submit = new SubmitButton({
        id: 'submit',

        el: $('#search_btn')
    }, {tokens: true}).render();

    submit.on("submit", function() {
        submitTokens();
    });

but it still shows "Submit" text and not "Update".

0 Karma
Get Updates on the Splunk Community!

Threat Hunting Unlocked: How to Uplevel Your Threat Hunting With the PEAK Framework ...

WATCH NOWAs AI starts tackling low level alerts, it's more critical than ever to uplevel your threat hunting ...

Splunk APM: New Product Features + Community Office Hours Recap!

Howdy Splunk Community! Over the past few months, we’ve had a lot going on in the world of Splunk Application ...

Index This | Forward, I’m heavy; backward, I’m not. What am I?

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