# Adding buttons in kibana markup visualisations

**URL:** https://discuss.elastic.co/t/adding-buttons-in-kibana-markup-visualisations/261432
**Category:** Kibana
**Created:** [January 18, 2021, 1:29pm UTC](https://discuss.elastic.co/t/adding-buttons-in-kibana-markup-visualisations/261432 "2021-01-18T13:29:10Z")
**Posts on this page:** 1
**Showing post:** 3

<div class="post-metadata">

### Author: ![markov00](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/markov00/32/33316_2.png) [@markov00](https://discuss.elastic.co/u/markov00)
#### Post date: [January 18, 2021, 3:23pm UTC](https://discuss.elastic.co/t/adding-buttons-in-kibana-markup-visualisations/261432/3 "2021-01-18T15:23:44Z")

</div>

here there is an example of a vega visualization with a button to interact with the filter bar:

> [@Vega: Signal value automatically resets to initial value](https://discuss.elastic.co/t/vega-signal-value-automatically-resets-to-initial-value/261441):
>
> I am trying to create a toggle button using Vega viz to add/remove a Dashboard filter. Everything works fine except when I toggle it ON, the filter gets added but the toggle button jumps back to the OFF state automatically. I have to click for the second time to get the button to stay in the ON state. However, toggling OFF works fine with one click. Debugging shows that the value of the toggle signal resets to the initial value in the first click. Please find the code below. { "$schema": "ht…

---

_[View the full topic](https://discuss.elastic.co/t/adding-buttons-in-kibana-markup-visualisations/261432)._
