Hi all. The site I'm building will have a weekly poll that is used as an education tool. Users will vote on a question, and then I would like the CORRECT answer to show up after the user has voted. I've read around, and this is NOT what Advanced Poll (more specifically, Binary Polls) are intended for. Regardless...

I've modified the original Binary Poll content type with a field called "Answer". An admin writes the correct answer, with a little description as well, so this can be used to teach something to our users.

I've used Contemplate to show the answer field to the poll above the results after the user has voted. It works, except that the only way for the answer to show up is for the user to refresh the page. Not cool.

So after the user has voted, it says "Your vote has been registered." How can I force the page to refresh after that is displayed? Or even better, how can I dynamically show the answer after a vote has been cast?

Comments

trevorkjorlien’s picture

Title: Refresh Page After User Has Voted » Refresh Page After User Has Voted to Show "Correct Answer"
jenlampton’s picture

Issue summary: View changes

I've just created a lightweight module that does exactly what is described here. If anyone is in need of this feature, please consider giving the Poll correct answer module a try.