I have a form that includes a “How did you hear about us” dropdown menu, and I’d like to set up a template with a table displaying the count of each of the results.
The form field looks like this:
<label>How did you hear about us?</label>
<select name="refer">
<option disabled="disabled">Choose One</option>
<option value="Recommendation">Recommendation</option>
<option value="Previous Customer">Previous Customer (same house)</option>
<option value="TV Commercial">TV Commercial</option>
<option value="Yellow Pages">Yellow Pages</option>
</select></p>
I’d like the template to be something like this, where each number represents the number of times that individual option has been selected:
Recommendation: 10
Previous Customer: 4
TV Commercial: 12
Yellow Pages: 5
Is there a way to do this?
