# يجب أن تنتقل الاستطلاعات تلقائيًا إلى النتائج عند تحميل الصفحة إذا كان المستخدم قد صوت بالفعل

**URL:** https://meta.discourse.org/t/polls-should-automatically-switch-to-results-on-page-load-if-user-has-already-voted/50053
**Category:** UX
**Tags:** polls
**Created:** [13 سبتمبر 2016، 1:12ص UTC](https://meta.discourse.org/t/polls-should-automatically-switch-to-results-on-page-load-if-user-has-already-voted/50053 "2016-09-13T01:12:39Z")
**Posts on this page:** 10
**Page:** 1

<div class="post-metadata">

### Author: ![Drew\_Warwick](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/drew_warwick/32/80591_2.png) [@Drew\_Warwick](https://meta.discourse.org/u/Drew_Warwick)
#### Post date: [13 سبتمبر 2016، 1:12ص UTC](https://meta.discourse.org/t/polls-should-automatically-switch-to-results-on-page-load-if-user-has-already-voted/50053/1 "2016-09-13T01:12:39Z")

</div>

We have a big poll going on in our Discourse forum and votes will likely keep rolling in for a couple days. After re-checking the thread around 10 times, I started to notice something with the poll. Even though I had already voted, the poll was prompting me to enter my votes again instead of showing me the results.

Chances are, if I’ve already voted on a poll I want to see the results instead of change my vote, so it’s better ux to show the results by default for users who’ve already voted.

---

<div class="post-metadata">

### Author: ![krauss](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/krauss/32/221613_2.png) [@krauss](https://meta.discourse.org/u/krauss)
#### Post date: [22 سبتمبر 2016، 2:14م UTC](https://meta.discourse.org/t/polls-should-automatically-switch-to-results-on-page-load-if-user-has-already-voted/50053/2 "2016-09-22T14:14:22Z")

</div>

Hum… We also need good poll mechanism. Ideal is a poll that count by user and (as likes) show the voters. we not need “secrete voting” **but [open](https://en.wikipedia.org/wiki/Open_ballot_system)**, transparent and effective voting mechanism… After closed (eg. couple days) all voters are listed with results or optional link to result table.

---

<div class="post-metadata">

### Author: ![zogstrip](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/zogstrip/32/512781_2.png) [@zogstrip](https://meta.discourse.org/u/zogstrip)
#### Post date: [22 سبتمبر 2016، 2:37م UTC](https://meta.discourse.org/t/polls-should-automatically-switch-to-results-on-page-load-if-user-has-already-voted/50053/3 "2016-09-22T14:37:55Z")

</div>

You can already use the `public=true` attribute to make a public poll (ie. show the list of voters) 😉

_Poll ([view on site](https://meta.discourse.org/t/polls-should-automatically-switch-to-results-on-page-load-if-user-has-already-voted/50053/3))_

---

<div class="post-metadata">

### Author: ![cpradio](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/cpradio/32/4970_2.png) [@cpradio](https://meta.discourse.org/u/cpradio)
#### Post date: [22 سبتمبر 2016، 3:00م UTC](https://meta.discourse.org/t/polls-should-automatically-switch-to-results-on-page-load-if-user-has-already-voted/50053/4 "2016-09-22T15:00:06Z")

</div>

@zogstrip, not sure why, but that poll doesn’t look right visually and it doesn’t seem to respond to any interactions with it… Can’t vote, can’t show results.

---

<div class="post-metadata">

### Author: ![zogstrip](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/zogstrip/32/512781_2.png) [@zogstrip](https://meta.discourse.org/u/zogstrip)
#### Post date: [22 سبتمبر 2016، 3:00م UTC](https://meta.discourse.org/t/polls-should-automatically-switch-to-results-on-page-load-if-user-has-already-voted/50053/5 "2016-09-22T15:00:56Z")

</div>

Refresh your browser, there was a JS error in the `discourse-staff-notes` plugin I just fixed and deployed 😉

---

<div class="post-metadata">

### Author: ![cpradio](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/cpradio/32/4970_2.png) [@cpradio](https://meta.discourse.org/u/cpradio)
#### Post date: [22 سبتمبر 2016، 3:02م UTC](https://meta.discourse.org/t/polls-should-automatically-switch-to-results-on-page-load-if-user-has-already-voted/50053/6 "2016-09-22T15:02:22Z")

</div>

Ah, okay. I had done that a few times, just needed to do it once more for good measure 😉 🙂

---

<div class="post-metadata">

### Author: ![riking](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/riking/32/170938_2.png) [@riking](https://meta.discourse.org/u/riking)
#### Post date: [22 سبتمبر 2016، 4:37م UTC](https://meta.discourse.org/t/polls-should-automatically-switch-to-results-on-page-load-if-user-has-already-voted/50053/7 "2016-09-22T16:37:44Z")

</div>

They’re not taking about who voted for what.

The report is that when they visit the page again, it shows the vote screen with their vote highlighted instead of the results view.

---

<div class="post-metadata">

### Author: ![zogstrip](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/zogstrip/32/512781_2.png) [@zogstrip](https://meta.discourse.org/u/zogstrip)
#### Post date: [22 سبتمبر 2016، 4:42م UTC](https://meta.discourse.org/t/polls-should-automatically-switch-to-results-on-page-load-if-user-has-already-voted/50053/8 "2016-09-22T16:42:49Z")

</div>

> [@riking](#):
>
> They’re not taking about who voted for what.

@Drew_Warwick wasn’t but @krauss was 😉

---

<div class="post-metadata">

### Author: ![krauss](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/krauss/32/221613_2.png) [@krauss](https://meta.discourse.org/u/krauss)
#### Post date: [24 ديسمبر 2016، 11:04ص UTC](https://meta.discourse.org/t/polls-should-automatically-switch-to-results-on-page-load-if-user-has-already-voted/50053/9 "2016-12-24T11:04:39Z")

</div>

Thanks @zogstrip to the `public=true` option! Yes, it is important **the option for transparency** , showing the list of voters!

Another little and important issue is the config-option, to set “public” globally in the plataform… Or, a dream, locally (ex. we need to enforce public only [at our local group](https://discuss.okfn.org/c/local-groups/okbr)).

---

<div class="post-metadata">

### Author: ![zogstrip](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/zogstrip/32/512781_2.png) [@zogstrip](https://meta.discourse.org/u/zogstrip)
#### Post date: [19 نوفمبر 2018، 1:52م UTC](https://meta.discourse.org/t/polls-should-automatically-switch-to-results-on-page-load-if-user-has-already-voted/50053/10 "2018-11-19T13:52:32Z")

</div>

I _think_ this is now fixed in

[https://github.com/discourse/discourse/commit/4459665deeb84fb43621be90d64378ebc5fbd365](https://github.com/discourse/discourse/commit/4459665deeb84fb43621be90d64378ebc5fbd365)
