Hi,
Is it possible to change the text of submit button in Simple XML Dashboard of Splunk 6.1?
Kindly Help...!!!
Got it...Thanks strive and martin_mueller..!!!
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();
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".