# "Unvote" a poll

**URL:** <https://meta.discourse.org/t/unvote-a-poll/50476>\
**Category:** Feature\
**Created:** [September 22, 2016, 7:08am UTC](https://meta.discourse.org/t/unvote-a-poll/50476 "2016-09-22T07:08:59Z")\
**Posts on this page:** 1\
**Showing post:** 14

<div class="post-metadata">

**Author:** ![bletch](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/bletch/32/69088_2.png) [@bletch](https://meta.discourse.org/u/bletch)\
**Post date:** [October 5, 2021, 4:23pm UTC](https://meta.discourse.org/t/unvote-a-poll/50476/14 "2021-10-05T16:23:08Z")

</div>

Hi, I’ve just pulled down the latest build to my dev environment to test this and I’ve noticed a small, perhaps non-intentional change.

It’s a small change, but it’s significant to me due to the quirky way I use polls.

Previously, if there were no votes in the poll, the “Show results” button would be disabled. That made sense, there are no results to see so the “Show results” button shouldn’t be pressable. It looked like this…

 ![image](https://global.discourse-cdn.com/meta/original/3X/d/2/d2cc2ea590380ea8b3fe7c7a893c89f7ebd9401d.png)  
_Notice there have been no votes and the “Show results” button is disabled_

In the new “Unvote” build _it appears_ that the “Show Results” button is always enabled whether there have been votes or not.

 ![image](https://global.discourse-cdn.com/meta/original/3X/1/f/1fb08db577713dc361f6d3158f2806d9122aab8a.png)  
_Notice there have been no votes cast but the “Show results” button is enabled_

Some questions: Is this the case? Was this intentional or an oversight? Will you be changing it back?

If it’s staying the way it is, then I’ll try another way to achieve my desired outcome.

Either way thanks for the unvote feature which seems to work very well!

> **Background**
>
> ## Background…
> 
> Why is this an issue to me? I use polls to capture the input from (mostly) individual users. i.e. a poll allows me to ask specific questions of an individual user in a specific context. There is seldom more than one vote in a poll but they make gathering structured data very easy.
> 
> In my plugin, a topic can feature many polls and these polls can feature lots of options which means a lot of scrolling. To make it easier for the users to navigate, once they have voted, a theme component I wrote removes the other options from the poll UI leaving only the option they selected.
> 
> To remove these options, my theme component targets an **enabled** “Show results” button and “clicks” it, once the results are shown, any options that have no votes are removed.
> 
> It ends up looking like this.
> 
> ![image](https://global.discourse-cdn.com/meta/original/3X/0/0/00d29d5509a79647fb90c33195f8dc7d7358f46a.png)
> 
> At the moment, because the “Show results” button is enabled by default, my code clicks it and as there haven’t been any votes, all of the options are removed and it looks like this…
> 
> ![image](https://global.discourse-cdn.com/meta/original/3X/4/1/41266229a12f4d0c37677bcd9e9c3da1124f3f83.png)

---

_[View the full topic](https://meta.discourse.org/t/unvote-a-poll/50476)._
