# How to Pre-check Checkboxes Using Interact.jl?

**URL:** <https://discourse.julialang.org/t/how-to-pre-check-checkboxes-using-interact-jl/53802>\
**Category:** General Usage\
**Tags:** jupyter, visualization\
**Created:** [January 22, 2021, 7:31pm UTC](https://discourse.julialang.org/t/how-to-pre-check-checkboxes-using-interact-jl/53802 "2021-01-22T19:31:45Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![TheCedarPrince](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/thecedarprince/32/17323_2.png) [@TheCedarPrince](https://discourse.julialang.org/u/TheCedarPrince)\
**Post date:** [January 22, 2021, 7:31pm UTC](https://discourse.julialang.org/t/how-to-pre-check-checkboxes-using-interact-jl/53802/1 "2021-01-22T19:31:45Z")

</div>

How do I use Interact.jl to present a list of checkboxes with some of the boxes already checked off? Tried following the documentation and couldn’t figure out how to set specific checkboxes to true (i.e. checked off).

What I have currently, is this:

![image](https://global.discourse-cdn.com/julialang/original/3X/8/f/8f729ae457168f7854864400c645eb1881ef7623.png)

The boxes are empty by default. What I would like to have happen is for a few boxes to already be checked off when they are first shown like this:

![image](https://global.discourse-cdn.com/julialang/original/3X/0/0/0089dc68fb41da42fd2326cfae8dc091265b6cc1.png)

The code I have been using is:

```julia
using Interact
options = Observable(["a", "b", "c"])
wdg = checkboxes(options)
wdg

```

Thanks!

~ tcp 🌳

---

<div class="post-metadata">

**Author:** ![TheCedarPrince](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/thecedarprince/32/17323_2.png) [@TheCedarPrince](https://discourse.julialang.org/u/TheCedarPrince)\
**Post date:** [January 25, 2021, 5:33pm UTC](https://discourse.julialang.org/t/how-to-pre-check-checkboxes-using-interact-jl/53802/2 "2021-01-25T17:33:48Z")

</div>

Issue opened here as it is still unclear how to achieve this: [https://github.com/JuliaGizmos/Interact.jl/issues/386](https://github.com/JuliaGizmos/Interact.jl/issues/386)

---

<div class="post-metadata">

**Author:** ![TheCedarPrince](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/thecedarprince/32/17323_2.png) [@TheCedarPrince](https://discourse.julialang.org/u/TheCedarPrince)\
**Post date:** [January 25, 2021, 6:47pm UTC](https://discourse.julialang.org/t/how-to-pre-check-checkboxes-using-interact-jl/53802/3 "2021-01-25T18:47:38Z")

</div>

I figured it out! Thanks to @piever , here is a solution that works:

```julia
options = ["a", "b", "c"]
value = ["a", "c"]
checkboxes(options, value = value)

```

 ![image](https://global.discourse-cdn.com/julialang/original/3X/1/d/1d82d132eb9d3809ae741749f087594debf199e4.png)
