re: Feedback on this new DEV feature? VIEW POST

FULL DISCUSSION
 

Sounds interesting, Good job Ben. However, it would be great if you implement an error prevention mechanism like giving a chance for the user to undo his choice in a defined interval. I accidentally cast my first vote by clicking out of curiosity.

 

This makes sense. It probably shouldn't be possible, though, to change your vote once you've seen results. Twitter allows you to click a button and then click submit which limits the surface area for misclicks. That is probably the expected behavior.

I found getting things just right to be outside of the scope of my weekend hack. I hope others will jump in and improve on this whole feature. 😄

 

Twitter allows you to click a button and then click submit which limits the surface area for misclicks. That is probably the expected behavior.

In any case, the expected behavior of a Radio Button is never to do something irreversible.

If you want to save one click you could probably replace those with a "vote" button or something, then people would understand that clicking would cast their vote.

But radio buttons ? The whole point of a radio button (as anyone who spent time playing with their dad's old stereo as a kid would know) is to play with them and see them pop out when you press another button. If you cast my vote when I press one you completely remove my ability to play with them and enjoy them.

So yeah, a "submit" button would probably be better, especially since it would allow you to have multiple answer polls down the line without rethinking the UI.

 
 

Sometimes it doesn't really make a difference, so it could be optional, and the creator of the poll chooses if the vote can be changed or not

 

Another idea maybe is a quick countdown splash with an undo button for like 5 seconds that then changes to the results if undo is not clicked.🤔

code of conduct - report abuse