You would need to write some custom JavaScript to do this. You could create a hidden field in your form, and then write some JavaScript that populates that field when the user fills out another field.
For instance, if your “Are you over 18?” field is a dropdown with an ID of 1, and you have a hidden field called “Number of answers” with an ID of 2 and a default value of 0, you could do something like this:
Every time a user changes the answer to “Are you over 18?” the counter in the hidden field would go up.
I have not tested this code at all, so it might not work, but hopefully it’s enough to get you started. If you need help getting it to work, let me know!
Is there a way I can streamline the function to work for every field in the form, or do I need to write a section of code to look at each possible change event?
$( "input" ).change( function() {
var $id = $( this ).attr( 'id' );
var $old_value = $( "#input_1_10" ).val();
$( "#input_1_10" ).val( $old_value + $id + ' value changed, ' );
});
(again code is completely untested and might not work)
That would fill your hidden field with: input_1_1 value changed, input_1_2 value changed, input_1_3 value changed, input_1_1 value changed
which might be really annoying to read through.