If you need to create a voting activity you can use Choice for a simple poll or if you need to compile votes, choose the Vote activity
This refers to Moodle 3.6 from July 2019 onward
The Vote activity allows you to create a simple selection of options for which students will vote.
It can be used for student representative elections or for any other voting activity.
Choose the Save and return to module button or Save and display button.
The Vote will be visible in the module. Now you set up the different choices.
Enter the vote by clicking on the title of the Vote.
On the next screen, choose Add a new question.
Add the main question. You can add a weighting to control the order of the questions if your Vote activity contains more than 1 question. The lowest number appears at the top of the list if you are using weighting. If you do not want to control the order leave it at 1 for all questions). Click on the Save changes button.
Next, choose Add a new option. Type in your first Option (Use Weighting for each option if you want to control the order. The option with the lowest number appears at the top of the list if you are using weighting. If you do not want to control the order leave it at 1 for all options.)
Click on the Save changes button. Do the same for the next Options until you have entered them all.
Choose Make the vote active
Everyone who has access to the module can vote, typically choosing one option (see above for explanation Alternative vote).