Hi ,
I've an input panel with the drop down. A token is set in the input panel. How to hide the drop down input panel (I just need to hide the input panel always)?
Thanks.
You can set the attribute depends="$faketoken$"
to always hide the dropdown input.
You can set the attribute depends="$faketoken$"
to always hide the dropdown input.
Feel free to ask a new question about that, and make sure you include the dashboard xml that doesn't do what you expect. At some point we're just spamming an older question, veering further away from the original issue.
You can use tokens that exist too, depends
will show the panel or input when the token is set and hide it when the token is unset. Using that, you can set or unset a bunch of tokens from an input to show or hide a bunch of inputs.
I've tried using condition
for a checkbox that acts as a parameter enable selection, but the condition applying to the choices does not seem to work at all.
Works for me with checkboxes:
<form>
<label>hidden checkbox</label>
<fieldset submitButton="false">
<input type="checkbox" token="field1" depends="$faketoken$">
<label>field1</label>
<fieldForLabel>sourcetype</fieldForLabel>
<fieldForValue>sourcetype</fieldForValue>
<search>
<query>index=_internal | stats count by sourcetype</query>
<earliest>-60m@m</earliest>
<latest>now</latest>
</search>
</input>
</fieldset>
</form>
I did not notice I had to literally use a token that doesnt exist.. Is there a way to map this to something like a master input? Say I has a master input field that I can select from checkboxes which filter inputs are available
My bad, I forgot to include the dollar signs.
Perfect 🙂 This is what I need. It worked. Thanks Martin
Does this only work for dropdown? I am trying on a checkbox but it's not working? (it is a dynamic populated search checkbox)
Hi Martin, thanks for the reply. I've added the attribute depends="faketoken" for the dropdown input . But it doesn't hide.