I want to limit the number of answers selection for a multiple choices question (3 responses as maximum for that question), and I inserted the syntax: “(if(count-selected(.)>2,true())” under settings of that question in the web-form, but the system displayed an error message when I clicked to preview or deploy it. Anyone could you please help me to check and fix this issue?
Thank you very much!
Welcome @vchung,
You are missing the else case in your if clause.
Often you can get help directly by using the search function of this forum, e.g.
https://community.kobotoolbox.org/search?q=limit%20response%20number%20multiple
Often also the Help Center articles provide answers.
@Kal_Lam. A count-selected example might be good to.add in the Help Center, please. (I found nothing there.)
2 Likes
Well noted @wroos! We will keep this on our radar.
1 Like
@vchung, I see that your if statement is not complete. It should have 3 arguments. Maybe you should be able to learn more about the same through this post discussed previously:
1 Like
THanks so much!
1 Like
Thanks for sharing this info this is useful keep it up.
1 Like