How can I populate a voting form automatically