Absolute Numbers in Polls

Heyah,

I remember there was a great topic once explaining the usage of the poll-plugin, but even after searching the forum for 15min I can find it (found a reference to it, that leads to a 404 though). So in case that is already implemented, please let me know how to activate it and move this out of this section :wink: .


Love the polls. We are using it internally to gauge interest and make participation easier. It also acts as a replacement for doodle. One thing we are using it for is to easily pre-organise events, for e.g. asking who’s gonna come and what food they want (and having emoji in it, makes it awesome):

However, the “relative” counts are really irrelevant in this case for us. So when looking at the results, to figure out how much pizza/sushi to order, I have to make the reverse calculation. It’d be great, if I could configure the poll to use absolute instead of relative numbers on a case-to-case-basis.

「いいね!」 6

At a minimum we would be fine with a PR that add a “title” attribute to .percentage that describes how many votes total there are.

Maybe also a “hint” to work in “total” mode, but that is up to @codinghorror to decide.

「いいね!」 4

I think adding a “results” attribute which defaults to “percentage” but can also be set to “total” shouldn’t be that hard. Most of the work is done client-side anyway.

「いいね!」 1

Would a PR doing that be accepted?

「いいね!」 1

Of course it would be :wink:

「いいね!」 1

We just came across needing this with a vote of over 100 people where we needed the actual numbers and didn’t realize this was an issue. If this gets rendered in the could someone point me to where this gets done in the code and I could try taking a look at it?

If you have the data explorer plugin installed, you can use a provided query at /admin/plugins/explorer?id=-16 to get the full results.

「いいね!」 1

この機能はまだ実装されていないということでよろしいでしょうか?

もしそうであれば、資金調達の選択肢を探すために Marketplace で見積もりを依頼したいと思います。

適切な投票オプションは何でしょうか?

  • [poll absolute]
  • [poll absolute=true]
  • その他…
0 voters

現在のドキュメントはこちらです。

「いいね!」 1

この改善を行うためのPRを作成しています。

「いいね!」 5

メモを残しておきました :sweat_smile:

「いいね!」 1

この機能はマージされました :slightly_smiling_face:

「いいね!」 7

変更に対応していただき、少し遅らせていただきありがとうございます :hugs:

「いいね!」 1

このトピックは47時間後に自動的に閉じられました。返信はもうできません。