Hi all,
I've setup a dynamic dropdown field in a dashboard through the following configurations:
I then use the field value as a input to filter one of the pivot tables on the dashboard (FILTER Artefact is $artefact$ ). However the issue I'm facing is that the Artefact values can sometimes have a whitespace in their values e.g. "foo bar" and this is creating an issue when filtering as it just filters by foo instead of foo bar.
Any help would be highly appreciated!
tokens can be written like
$artefact|s$
where the |s before the trailing $ will ensure the token value is quoted appropriately.
You can always do "$artefact$" but it's better practice to use |s so that it will be safe if ever processed by Javascript.
See https://docs.splunk.com/Documentation/Splunk/8.2.0/Viz/tokens#Syntax_to_consume_tokens
tokens can be written like
$artefact|s$
where the |s before the trailing $ will ensure the token value is quoted appropriately.
You can always do "$artefact$" but it's better practice to use |s so that it will be safe if ever processed by Javascript.
See https://docs.splunk.com/Documentation/Splunk/8.2.0/Viz/tokens#Syntax_to_consume_tokens