I have similar submitTokens but in my auto-generated HTML source I found this near the bottom of the file:
//
// VIEWS: FORM INPUTS
//
In here is how I changed it. I'm not sure what some of the inputs are as my dashboard has 5 inputs (4 dropdowns and 1 submit button) but the HTML code has 6 inputs. Here is an example of each type:
var input1 = new HtmlElement({
"id": "input1",
"useTokens": true,
"el": $('#input1')
}, {tokens: true, tokenNamespace: "submitted"}).render();
DashboardController.addReadyDep(input1.contentLoaded());
input1.on("change", function(newValue) {
FormUtils.handleValueChange(input1);
});
var input3 = new DropdownInput({
"id": "input3",
"choices": [],
"selectFirstChoice": false,
**"searchWhenChanged": false,**
"labelField": "values(tag)",
"showClearButton": true,
"valueField": "values(tag)",
"value": "$form.tag$",
"managerid": "search8",
"el": $('#input3')
}, {tokens: true}).render();
input3.on("change", function(newValue) {
FormUtils.handleValueChange(input3);
});
I found that if you have multiple inputs and if any of them have searchWhenChanged=true, then the whole thing kicks off.
... View more