You edited the font and size
Ohhhhhhhh i didnt see that
Is anyone else having problems with polls - them acting inconsistently?
Yep, there was a lot of discussion about that in previous posts here
Switch views and they should work
thanks - that really helps with making them - but theyāre still acting a little strange for me!
Strange, how so?
Yep, I doesnāt work. I have to copy+ paste them.
you probably will not need to copy paste anymore because iām writing a long guide to teach how to create polls /t
looking forward to it - you were the one who showed me how to make better tables!
The same polls were acting different each time I posted, though maybe it was something I did, Iāll experiment more!
The top guide to create polls
Itās been days the gear button is broken on most devices. Because this does not seem to wanna self-repair, iām going to write a detailed guide for everyone on the forum having this issue. Laddies and gentlemen, welcome to the top guide to create polls!
Start by adding a basic poll. A basic poll is a single choice poll, is private, does not have autoclose, is a bar (not pie), and does not have groups voting restrictions. Then, all sections down below will be following this basic poll.
[poll]
* Option 1
* Option 2
[/poll]
Result
- Option 1
- Option 2
0 voters
You have the skeleton of your poll here. You can choose to personalize your poll, just like before when the gear button is not broken.
Multiple Choice and Number Rating
Your poll is a single choice poll. Do you want more fancy stuff - Multiple? Rating?Check this section out!
Multiple Choice ā
Multiple choice allows the voter to choose multiple options. You can also set the minimum of votes and the maximum of votes, too.
[poll type=multiple min=2 max=3]
* Option 1
* Option 2
* Option 3
[/poll]
ā type=multiple
sets the poll to a multiple choice poll.
ā min=2
sets the number of minimum choices you need to choose before voting. You can customize this number by changing 2 to any numbers youād like.
ā max=3
sets the number of maximum choices you need to choose before voting. Just like min
, you can customize the number.
Warning: Make sure your
max
value is always greater than min
.
Result
- Option 1
- Option 2
- Option 3
0 voters
Number Rating š¢
Number rating allows the voters to rate something - eg. a project or an art piece.
[poll type=number min=0 max=5 step=1]
[/poll]
ā type=number
sets the poll to a Number Rating one.
ā min=0
sets the minimum value the voter can choose. You can customize it by changing the 0 to whatever number you want.
ā max=5
sets the maximum value the voter can choose. Just like min
, you can customize the number.
ā step=1
sets the steps your poll will show. For example, if you set step=5
, the poll will generate 0, 5, 10, 15, 20, ...
as options to vote.
This poll argument (
step=1
) is completely unnecessary if your steps are 1, and can be removed without any problems.
Poll-breaking cases: Never put options (
* Option 1
) in a number rating poll.
Warning: Make sure your
max
value is always greater than min
.
Pro tip: Never set a poll with a mega number of options. The voters will never be able to distinguish between a 23 and a 24. In edge cases, if you intentionally put a giant number of options (>100 options), your post may be considered as spammy and could be removed. Plus, on computer view, discourse can freeze (>10,000 options) in post preview window.
Result
- 0
- 1
- 2
- 3
- 4
- 5
0 voters
Adding a title
Titles are fundamental to a poll. It tells the subject of it and your intention.
[poll]
# "Always look at where we will be two more papers down the line."
* Option 1
* Option 2
[/poll]
ā # [ā¦]
is your title.
Pro tip: Keep your title short! Make sure to target directly what you wanna say from the first word. Try to only write at maximum two sentences, a title is not a paragraph.
Result
- Option 1
- Option 2
0 voters
Public poll
Public polls are often very necessary. You can, for example, note down the voters who want to join your tag list, or get peopleās opinion on your newest game.
[poll public=true]
* Option 1
* Option 2
[/poll]
ā public=true
sets the poll to public.
Pro tip: Wanna get opinion from the community? Setting your poll to public seems to be a very tempting choice, but keeping it private often makes the voters more honest!
Result
- Option 1
- Option 2
0 voters
Autoclose
Autoclose are useful when you need to close a poll after a certain specific amount of time. However, this is not at all easy to do without discourse's automatic poll creator, and i recommend you to follow these steps one-by-one carefully.- Get the time you need to autoclose and input the value in this website: time.lol
- Copy the ISO 8601 time.
- Put the autoclose time in the poll by replacing
TIME
with your ISO 8601 input.
[poll close=TIME]
* Option 1
* Option 2
[/poll]
4. You're done!
Warning: Itās hard to copy time on time.lol if your settings makes it change each seconds. For instance, if you input āTomorrowā, the time will change each seconds. Put āTomorrow at 4:00 pm ESTā for example to make the time fix (does not change each seconds).
Result
- Option 1
- Option 2
0 voters
Pie
Pie are mostly used in nominate your project.
[poll chartType=pie]
* Option 1
* Option 2
[/poll]
ā chartType=pie
sets the poll to a pie instead of a bar.
Warning:
public=true
is not compatible with pie polls.
Result
- Option 1
- Option 2
0 voters
Show result
A basic poll shows the results of the poll whenever you want by clicking Show Result [1]. However, you can control when people can see the vote by using this attribute:
[poll results=on_vote]
* Option 1
* Option 2
[/poll]
ā results=on_vote
sets the pollās results only visible when someone votes. You can also set it to results=on_close
to make the results visible when you close it.
Pro tip:
results=on_close
ās best friend is an autoclose!
Result
- Option 1
- Option 2
0 voters
Limit poll to a tag list
You can limit your poll to a tag list. This trick is not often used, people usually only use it to get more people in a tag list. However, i personally think this creates a bad impression on you, and i donāt recommend doing that. Although, this does not stop me sharing this trick to yāall :D
[poll groups=Rectangle]
* Option 1
* Option 2
[/poll]
ā groups=Rectangle
limits the poll to the members of @Rectangle, my tag list.
Pro tip: Wanna limit the poll to multiple tag lists? Separate them with a comma (without space!!) and here we are!
groups=Rectangle,OMTL
Result
- Option 1
- Option 2
0 voters
I havenāt mentioned it, but you can combine attributes. For example,
[poll public=true results=on_close]
# This is a combined poll!
* Indeed
* This
* Is!
[/poll]
gives a public poll with a title which the results will be shown once closed.
Troubleshooting
"There are multiple polls without a name. Use the 'name' attribute to uniquely identify your polls." error message
You have more than one poll in your post. Thereās an easy fix for this - adding a name attribute:
[poll name=poll1]
* Option 1
* Option 2
[/poll]
[poll name=poll2]
* Option 1
* Option 2
[/poll]
ā name=poll1
sets a name to the poll in order to avoid a discourse error message.
Pro tip: No need to give a fancy name, like Justin_and_a_cute_spider [2], to the poll. No one else will be able to see it!
Result
- Option 1
- Option 2
0 voters
- Option 1
- Option 2
0 voters
Pie does not show who voted
Pie polls do not have the ability to show who voted. Switch to Bar if you want it to be public.
Suggestions are welcome! The more we have, the more we can help people in the section!
Thank you very much for taking time to read all of this, i hope you learn something new today and you now know how to write a poll without the gear button, and without copy pasting older polls!
I will tag @polygons and @omtl to get as much people reading and understanding the process to create a poll. Thank you again, and have a nice nice day!
yes, there are at least 10 hidden polls in this post, go find 'em!
- All hail to the mighty discourse poll
0 voters
Very well written!
speed
(To be honest, I was expecting this to be its own topic based on what you said, but it is a very definitive guide! It might be worth linking this somwhere)
Super cool!
- Hello
- Hi
0 voters
wow that was a fast reply - did you see my test post in the discobot pm?
i thought about starting a new topic, but this gear bug is only temporary so i posted here. but iām fine with a new topic too, if you think this tutorial is worthy! :D
thank you :))
We canāt see PMs that we arenāt in ā but I was ready for the notification because of your timestamp
I guess thatās true, but thereās some helpful tips that apply even after using the poll builder in the gear menu. Itās possible that the poll builder button dropped support for older iOS safari versions, plus I think asking about polls is frequent enough for this to be FAQ (that is, if you add a section of how to create a poll with that menu too)
Discourse limits you to 20
Unless you do it the advanced way I think I have a post somewhere in the old text tricks topic where I have custom options in a number rating poll, but it uses a different structure (probably not worth adding to your post)
okay, so if i add that section youāll be able to move the post into a new topic? iāll go start writing rn and tag you when iāll finish - tysm!
yes but i donāt think itāll limit if you write it without the poll creator
lemme test
never mind the preview on computer view confused me and i assumed wrongly we can put more options lol
but whatās true is that if you set a mega number of options and if you have the preview on discourse will freeze (at least for me)
Iāll check with the team, but I personally think it would be a helpful topic to have in FAQ if there isnāt one already
Edit: thereās one here, but itās nowhere as comprehensive
i need to bookmark this
super in-depth and will be very helpful until the feature is fixed
i saw this:
did you mention that polls can only have up to 20 options?
yea sorry, ae pointed out that we can only put at max 20 options - the preview on computer view confused me and thanks! :D
ah, i missed that
yeah its weird that it waits until youre ready to reply to tell you your post is invalid, but i guess it kinda makes sense because thats how other things work (blocked words)