Hello,
I am trying to access the value of a text input box in an html dashboard to pass to the saved search being called when submit button is pressed.
I am unable to get the value so far. Can someone pls tell me what I am missing?
Thanks,
Komal
<div id="panel2" class="dashboard-cell" style="width: 100%;">
<div class="dashboard-panel clearfix">
<div class="fieldset">
<div class="input input-text" id="text1">
<label> </label>
</div>
</div>
….
Form Inputs section of the dashbaord
//
// VIEWS: FORM INPUTS
//
var text1 = new TextInput({
"id": "text1",
"searchWhenChanged": true,
"value": "$appname_tok$",
"el": $('#text1')
}, {tokens: true}).render();
In my saved search I am saying ….$appname_tok$ but it does not pick up the value entered.
I have referenced this document already.
http://dev.splunk.com/view/webframework-codeexamples/SP-CAAAE5V
Any pointers?
Thanks a lot.
... View more