Hey!
If I build a poll, it displays properly.
- Poll
- Jumbled text
0 voters
But if I build a poll within Details, it appears as jumbled text.
Hide Details
[poll name=poll2 type=regular results=always chartType=bar]- Poll
- Jumbled Text
Is this an error?
Hey!
If I build a poll, it displays properly.
0 voters
But if I build a poll within Details, it appears as jumbled text.
Is this an error?
Ooh, I know the answer to this one. ![]()
It’s because you need the poll code to be on a line all by itself. You can mix html hide details and the discourse poll code to get the results you want:
<details>
<summary>
Hidden Poll
</summary>
[poll type=regular results=always chartType=bar]
* Option 1
* Option 2
[/poll]
</details>
Example:
0 voters
Edit: After my giddy rush of excitement at posting my first message I’ve gone back and had a look at what happens with the standard hide details, as you can definitely put the poll in with white space above and below.
For some reason it mixes the [/poll] and [/details] codes together at the end. No idea if this is desired, but the workaround above works if you need it. ![]()
0 voters
Thank you @JammyDodger
This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.