justinmind-logo
 
Upvote 1

Allocate a total number of votes with a dropdown menu

Answered Victor Conesa 8 years ago

I'm trying to set up a prototype in which a user would have a set number of votes to allocate (ie 6) and would then apply those votes to various options using a dropdown menu.


I'd like to set it up so that when a number is selected from any dropdown, you would see the total number of votes decrease by the total amount of votes set by the dropdowns and disallow amounts greater than the total amount of votes available.


for instance, we would start with 6 votes - I allocate 2 to option one, the total remaining says 4. I allocate 2 more to option 2, the total remaining says 2. If I change option 1's dropdown to 1 vote, the total would increase to 3.

Replies (2)
photo
1

Is there a way to disable values in the dropdown that are greater than the total remaining?

Leave a Comment
 
Attach a file