Poll Widget
The Poll widget reveals the widgets nested inside it only while a Twitch poll is running, and carries the live question and choice votes so the widgets inside can display them.
How it works
- Add a Poll widget (Add Widget → Primitives → Poll).
- Nest your widgets inside it.
- They're hidden by default, fade in when a poll starts, and hide when it ends.
- Invert flips it — show the nested widgets except while a poll is up.
Settings
| Setting | Description |
|---|---|
| Linger after end | Seconds to keep showing after the poll ends (default 0). |
| Fade duration | Fade in/out time, in milliseconds. |
| Invert | Show the nested widgets only while there is no poll. |
| Backdrop | Optional background colour behind the nested widgets. |
Displaying the live values
Add a widget inside, set a dynamic value (the </> toggle), and pick from the Show / Hide widget values group or type it in.
| Variable | Description |
|---|---|
`{{subtreeContext.poll.title}}` | The poll question. |
`{{subtreeContext.poll.choices.0.title}}` | The first choice's label (.1, .2, … for the rest). |
`{{subtreeContext.poll.choices.0.votes}}` | The first choice's vote count. |
`{{subtreeContext.poll.active}}` | true while a poll is running. |
note
A widget that loads in the middle of a poll catches up on the next vote update, so it may briefly stay hidden until then.
See also
- Hype Train — the same idea for Hype Trains, with a full walkthrough of displaying values.