Ok after some fiddling around I managed to do it. Here's what helped me:
1.) I went to the IRC channel where people talked me through some steps. I can recommend that because people can ask questions you haven't thought of. But be patient.
2.) There obviously is a problem if you enable the field "always hide" in the extended settings of a question. My first lesson was: don't do that. Instead disable it (meaning the question is always displayed) and use a script to manually hide it.
3.) You can hide the question via script with the help text section of a question. I tried editing the template as well before but that didn't work. Figure out the ID of the question, then use simple HTML script tags to include:
Code:
$('#question{QID}').hide();
. My question had the ID 1976 so in the help text section of the question that I wanted to not be displayed I entered:
Code:
<script>$('#question1976').hide();</script>
4.) Save and close the question, then open it again and check the help text section in text
and code view. In my case BOTH were empty, meaning the script that I entered was deleted after saving. That was due to my global safety settings, which had "filter HTML for XSS" enabled. That needs to be disabled to make it work.
5.) Now my counter is incrementing correctly and after the maximum is reached, participants get either a message or are forwarded to another page.
Props go out to
TonisOrmisson
and
Deusdeorum
.