My application has a number of dropdown lists. I’d like to count how many times different values have been selected in a form and add to a field in database.
I was thinking that i would add 3 new fields to my model. Yes, No and Unanswered and then somehow calculate how many times these we selected and update database with the total.
Yes | No | Unanswered
5 | 5 | | 7
What would be the best way to do this? Maybe i would need client side method to count and then update a field in the form before Posting form to database?