# Support a list of checkboxes in block fields

**URL:** https://forum.buildkite.community/t/support-a-list-of-checkboxes-in-block-fields/470
**Category:** Features Requests
**Created:** [May 7, 2019, 4:38am UTC](https://forum.buildkite.community/t/support-a-list-of-checkboxes-in-block-fields/470 "2019-05-07T04:38:07Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![rb\_iress](https://sea2.discourse-cdn.com/flex016/user_avatar/forum.buildkite.community/rb_iress/32/529_2.png) [@rb\_iress](https://forum.buildkite.community/u/rb_iress)
#### Post date: [May 7, 2019, 4:38am UTC](https://forum.buildkite.community/t/support-a-list-of-checkboxes-in-block-fields/470/1 "2019-05-07T04:38:07Z")

</div>

Originally posted on github: [https://github.com/buildkite/feedback/issues/280](https://github.com/buildkite/feedback/issues/280)

At the moment, if you want people to choose from a list of items with [custom block fields](https://buildkite.com/docs/pipelines/block-step) it’s very difficult. The common way people are doing it is pre-filling a textarea, and then asking people to remove any lines from the text area. And then using that value, split on newline, as the chosen options. This is error prone and a bit clunky.

A better way might be a way for people to use an array of checkbox options in the block form…

If you we had a new checkbox option, and someone used the `key` field of `servers-to-deploy` , and someone unblocked it selecting 2 of the 10 available options, the meta-data keys/values could be:

```auto
servers-to-deploy-count=2
servers-to-deploy-1=The First Server
servers-to-deploy-2=The Second Server

```

To use those values, you could iterate over them using bash:

if buildkite-agent meta-data exists “servers-to-deploy-count”; then for i in `seq 1 $(buildkite-agent meta-data get "servers-to-deploy-count")`; do echo “Deploying server (buildkite-agent meta-data get "servers-to-deploy-{i}”)…" done fi

If nothing is selected, then there should be no `servers-to-deploy-count` key.

---

<div class="post-metadata">

### Author: ![anon46008679](https://avatars.discourse-cdn.com/v4/letter/a/da6949/32.png) [@anon46008679](https://forum.buildkite.community/u/anon46008679)
#### Post date: [June 22, 2019, 12:19am UTC](https://forum.buildkite.community/t/support-a-list-of-checkboxes-in-block-fields/470/2 "2019-06-22T00:19:11Z")

</div>

Good news: we’ve just added support for this 🎉

> **[Support for selecting multiple options in block steps](https://buildkite.com/changelog/63-support-for-selecting-multiple-options-in-block-steps)**
>
> We’ve added a new multiple property to block steps, giving you the ability to select multiple options when unblocking builds ☑️
