You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Now we have a use case/question where only a limited number of answers should be possible.
For example:
A question with muliple answers where you can choose between answers like A, B, C or/and D.
Now, answer B can only be choosen 10 times in total.
So, if 10 participants have choosen answer B then answer B should be hidden as an option for any other participant that follows and opens the survey.
I think, if an implementation is possible, you have to include a new "max limit" field for each answer and on every page load you have to check the total amount of answers for a question and if it already matches the number in the "max limit" field then the answer option should be hidden (or not rendered at all).
Furthermore you have to check when you submit the form/page because it's possible that multiple users have opened the form around the same time when the option was still available. If 15 people open the form only the first 10 submits with answer B should be counted. If the 11th user submits the form and has option B selected then an error should appear that this option is not available anymore.
I know in a quiz that is not really the use case, to omit answers or set an answer limit, so my question would be if that functionality could still be added so that the extensions could be used as a poll/survey extension, too?
The text was updated successfully, but these errors were encountered:
Well a limit would be possible, but the biggest problem is the check after the form submission.
Currently there is only a JavaScript check.
First I must implement a PHP check after a form submit.
Conclusion: this are 2 new features. I will think about it...
Well, I have read this issue now again and I think you will not need it anymore.
I would close it, if so.
Otherwise I think its a special case and not for the GitHub-release.
Only a special version/implementation would be possible.
We use the extension as a poll/survey tool.
Now we have a use case/question where only a limited number of answers should be possible.
For example:
A question with muliple answers where you can choose between answers like A, B, C or/and D.
Now, answer B can only be choosen 10 times in total.
So, if 10 participants have choosen answer B then answer B should be hidden as an option for any other participant that follows and opens the survey.
I think, if an implementation is possible, you have to include a new "max limit" field for each answer and on every page load you have to check the total amount of answers for a question and if it already matches the number in the "max limit" field then the answer option should be hidden (or not rendered at all).
Furthermore you have to check when you submit the form/page because it's possible that multiple users have opened the form around the same time when the option was still available. If 15 people open the form only the first 10 submits with answer B should be counted. If the 11th user submits the form and has option B selected then an error should appear that this option is not available anymore.
I know in a quiz that is not really the use case, to omit answers or set an answer limit, so my question would be if that functionality could still be added so that the extensions could be used as a poll/survey extension, too?
The text was updated successfully, but these errors were encountered: