sv - 05 March 2008 12:13 AM
In EEPolls, polls could be presented so that two buttons appeared, one for submitting a vote, the other for viewing the results before voting. A reader of our site initially would see the poll question, the possible answers and two buttons. If they chose not to vote, by clicking on “View” they could still see the results.
LG Polls has the same functionality, but—if I’m understanding the documentation correctly—the only way to accomplish this is to display the poll question, the possible answers and the “Submit” button along with the poll answers repeated with their respective results. In other words, the reader sees the answers twice, which is redundant.
Would it possible to include an “either-or” function in LG Polls so that someone who has not voted has the choice of either voting or viewing the current results, but not both at the same time?
Leevi Graham - 05 March 2008 12:18 AM
When rendering the poll you display the question and answers in one div (div 1) and the existing poll results in another hidden div (div 2).
Now add a link inside div 1 which when clicked hides div 1 and shows div 2.
Hi Leevi,
If my polls is set at “After vote is cast”, the
{results_answers}
tag can’t display the result after the expired date.
I put
{results_answers}
inside
{if expired}
tag, but I can’t get the results (only manage to show total votes).
What is the right way to show result for both “After vote is cast” and “After vote has expired”?
Thank you.