I just created the questionnaire widget plugin. To make it easy to create and develop this plugin, I decided to use not JavaDB which is used in Mexico's "vote and like" feature but entry-comment which is a standard feature of TeamPage.
When the installation is completed, you will be required to restart your TeamPage server.
How to create a new questionnaire form
Open "New Article" view, click the cog icon (Insert/Edit Widget button), and choose "Questionnaire".
10 options are available. Empty options will be ignored. Write something and click OK.
Submit the article and you will see a questionnaire form in the article.
How to cast a vote
Write the option number as the first paragraph of the comment.
Notes;
The comment must be an "entry-comment" (article-comment), not an "item-comment" (a paragraph-comment).
Write the number only in the first paragraph. Otherwise, your comment will be an invalid vote.
So far, you can not choose multiple options.
So far, you can not cast multiple votes. Only your first vote (first comment) will be counted.
You can add your comment after the 2nd paragraph.
You can choose the other spaces if you have a permission to post a comment. This means you can cast a vote secretly, but your vote will be calculated only when your comment is visible.
The results will be calculated and displayed as below.