Polls within Hide details

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
[/] [poll ]

Is this an error?

Ooh, I know the answer to this one. :slightly_smiling_face:

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:

Hidden Poll

[poll type=regular results=always chartType=bar]
* Option 1
* Option 2



Hidden Poll
  • Option 1
  • Option 2

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. :+1:

Hidden Poll
  • yayy!
  • Yeay!

0 voters


Thank you @JammyDodger

1 Like

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.