I have a dashboard where the input fields are set to `searchWhenChanged="false"`. This was working as expected until I added an evaluated token from the value of one of these fields. Now, when I change the value of the input field associated with the evaluated token, the results table search automatically runs. Any suggestions on how to stop this?
Here is the token evaluation:
var offset = new DropdownInput({
"id": "offset",
"choices": [
{"label": "GMT", "value": "0"},
{"label": "PDT", "value": "25200"}
],
"searchWhenChanged": false,
"initialValue": "0",
"selectFirstChoice": false,
"showClearButton": true,
"default": "0",
"value": "$form.offset$",
"el": $('#offset')
}, {tokens: true}).render();
offset.on('change', function(newValue) {
FormUtils.handleValueChange(offset);
});
offset.on("valueChange", function(e) {
if (e.value !== undefined) {
EventHandler.evalToken("timezone", "$label$", e.data);
}
});
↧